API Documentation
Loading...
Searching...
No Matches
TableColumnBuffer< t_type > Class Template Reference

#include <TableColumnType.h>

Inheritance diagram for TableColumnBuffer< t_type >:
[legend]
Collaboration diagram for TableColumnBuffer< t_type >:
[legend]

Public Member Functions

 TableColumnBuffer (const String &label, const TypeInfo type)
 
 TableColumnBuffer (const String &label, const TypeInfo type, const t_type &default_value)
 
 TableColumnBuffer (const Buffer< t_type > &buffer, const String &label, const TypeInfo type)
 
void insert (uint04 index) override
 
void setSize (uint04 size) override
 
virtual void copyRow (uint04 source, uint04 destination) override
 
virtual void copyRows (uint04 source, uint04 destination, uint04 size) override
 
void removeRow (uint04 index) override
 
virtual void removeRows (uint04 index, uint04 size) override
 
virtual void removeRows (const Buffer< uint04 > &sorted_romove_indices) override
 
void removeRows (uint04 offset, const Buffer< bool > &indices) override
 
virtual void compress (BinaryCompressionObject &object) override
 
virtual void mapToFile (BinaryFile &file, int compression) override
 
virtual void mapToFile (BinaryFile &file, BinaryCompressionObject &object) override
 
virtual void mapFromFile (BinaryFile &file, uint08 version_number) override
 
void * begin () override
 
void * end () override
 
const void * begin () const override
 
const void * end () const override
 
virtual void addRow () override
 
virtual void insertRows (uint04 location, uint04 size) override
 
bool isSame (uint04 index, const String &value) const override
 
bool isSame (uint04 index, const char *value) const override
 
bool contains (uint04 index, const String &value, bool ignore_case) const override
 
bool contains (uint04 index, const char *value, bool ignore_case) const override
 
bool beginsWith (uint04 index, const String &value, bool ignore_case) const override
 
bool beginsWith (uint04 index, const char *value, bool ignore_case) const override
 
uint04 size () const override
 
- Public Member Functions inherited from TableColumn
 TableColumn (const String &label)
 
 TableColumn (const String &label, const TypeInfo type)
 
virtual ~TableColumn ()
 
const Stringlabel () const
 
void setLabel (const String &label)
 
virtual void setRowSize (uint04, uint04)
 
virtual uint04 getRowSize (uint04) const
 
virtual TypeInfo type () const
 
virtual void set (uint04 index, bool value)=0
 
virtual void set (uint04 index, uint01 value)=0
 
virtual void set (uint04 index, uint02 value)=0
 
virtual void set (uint04 index, uint04 value)=0
 
virtual void set (uint04 index, uint08 value)=0
 
virtual void set (uint04 index, sint01 value)=0
 
virtual void set (uint04 index, sint02 value)=0
 
virtual void set (uint04 index, sint04 value)=0
 
virtual void set (uint04 index, sint08 value)=0
 
virtual void set (uint04 index, fltp04 value)=0
 
virtual void set (uint04 index, fltp08 value)=0
 
virtual void set (uint04 index, const String &value)=0
 
virtual void set (uint04 index, RGBColor value)=0
 
virtual void set (uint04 index, uint04 vector_pos, bool value)=0
 
virtual void set (uint04 index, uint04 vector_pos, uint01 value)=0
 
virtual void set (uint04 index, uint04 vector_pos, uint02 value)=0
 
virtual void set (uint04 index, uint04 vector_pos, uint04 value)=0
 
virtual void set (uint04 index, uint04 vector_pos, uint08 value)=0
 
virtual void set (uint04 index, uint04 vector_pos, sint01 value)=0
 
virtual void set (uint04 index, uint04 vector_pos, sint02 value)=0
 
virtual void set (uint04 index, uint04 vector_pos, sint04 value)=0
 
virtual void set (uint04 index, uint04 vector_pos, sint08 value)=0
 
virtual void set (uint04 index, uint04 vector_pos, fltp04 value)=0
 
virtual void set (uint04 index, uint04 vector_pos, fltp08 value)=0
 
virtual void set (uint04 index, uint04 vector_pos, const String &value)=0
 
virtual void set (uint04 index, const Matrix< fltp08 > &transform)
 
virtual void set (uint04 index, const Matrix< fltp04 > &transform)
 
virtual void compressIfNeeded (BinaryCompressionObject &object)
 
void updateCompressionInfo (BinaryCompressionObject &object)
 
virtual void set (uint04 index, const UUID &value)
 
void set (uint04 index, const Time &time)
 
void set (uint04 index, const Vector< 32, bool > &value)
 
template<uint01 t_dims, class t_type >
void set (uint04 index, const Triangle< t_dims, t_type > &value)
 
template<uint01 t_dims, class t_type >
void set (uint04 index, const Bounds< t_dims, t_type > &value)
 
template<class t_type , uint01 t_col, uint01 t_row>
void set (uint04 index, const Matrix< t_type, t_col, t_row > &matrix)
 
template<class t_class >
std::enable_if< IsVec< t_class >::value >::type set (uint04 index, const t_class &value)
 
template<class t_class >
std::enable_if< ObjectInfo< t_class >::Enum >::type set (uint04 index, const t_class &value)
 
void set (uint04 index, const BitFlag &bitflag)
 
template<class t_class >
std::enable_if<!ObjectInfo< t_class >::Enum &&!IsVec< t_class >::value >::type set (uint04 index, const t_class &value)
 
template<class t_type >
void set (t_type *values, uint04 start_index, uint04 size)
 
template<uint01 t_dims, class t_type >
void setVector (uint04 index, const Vector< t_dims, t_type > &value)
 
template<class t_class >
void get (uint04 index, Vector< 1, t_class > &vector) const
 
void get (uint04 index, BitFlag &bitflag) const
 
template<class t_class >
std::enable_if< IsVec< t_class >::value &&t_class::NumberOfDimensions()!=1 >::type get (uint04 index, t_class &vector) const
 
template<class t_class >
std::enable_if< ObjectInfo< t_class >::Enum >::type get (uint04 index, t_class &enum_value) const
 
template<class t_type >
uint04 getIndexOf (const t_type &object) const
 
void setCompressionMode (CompressionMode compression_mode)
 
virtual void get (uint04 index, uint04 vector_pos, bool &value) const =0
 
virtual void get (uint04 index, uint04 vector_pos, uint01 &value) const =0
 
virtual void get (uint04 index, uint04 vector_pos, uint02 &value) const =0
 
virtual void get (uint04 index, uint04 vector_pos, uint04 &value) const =0
 
virtual void get (uint04 index, uint04 vector_pos, uint08 &value) const =0
 
virtual void get (uint04 index, uint04 vector_pos, sint01 &value) const =0
 
virtual void get (uint04 index, uint04 vector_pos, sint02 &value) const =0
 
virtual void get (uint04 index, uint04 vector_pos, sint04 &value) const =0
 
virtual void get (uint04 index, uint04 vector_pos, sint08 &value) const =0
 
virtual void get (uint04 index, uint04 vector_pos, fltp04 &value) const =0
 
virtual void get (uint04 index, uint04 vector_pos, fltp08 &value) const =0
 
virtual void get (uint04 index, uint04 vector_pos, String &value) const =0
 
virtual void get (uint04 index, bool &value) const =0
 
virtual void get (uint04 index, uint01 &value) const =0
 
virtual void get (uint04 index, uint02 &value) const =0
 
virtual void get (uint04 index, uint04 &value) const =0
 
virtual void get (uint04 index, uint08 &value) const =0
 
virtual void get (uint04 index, sint01 &value) const =0
 
virtual void get (uint04 index, sint02 &value) const =0
 
virtual void get (uint04 index, sint04 &value) const =0
 
virtual void get (uint04 index, sint08 &value) const =0
 
virtual void get (uint04 index, fltp04 &value) const =0
 
virtual void get (uint04 index, fltp08 &value) const =0
 
virtual void get (uint04 index, String &value) const =0
 
virtual void get (uint04 index, RGBColor &value) const =0
 
virtual void get (uint04 index, Matrix< fltp08 > &transform) const
 
virtual void get (uint04 index, Matrix< fltp04 > &transform) const
 
virtual void getVector (uint04 index, Vector< 3, fltp04 > &vector) const
 
virtual void getVector (uint04 index, Vector< 3, fltp08 > &vector) const
 
virtual void getVector (uint04 index, Vector< 3, uint04 > &vector) const
 
virtual void getVector (uint04 index, Vector< 2, uint04 > &vector) const
 
virtual void getVector (uint04 index, Vector< 1, uint04 > &vector) const
 
template<class t_type , uint01 t_col, uint01 t_row>
void get (uint04 index, Matrix< t_type, t_col, t_row > &matrix) const
 
void get (uint04 index, File &file) const
 
virtual void get (uint04 index, UUID &vector) const
 
void get (uint04 index, Time &time) const
 
void get (uint04 index, TranslatedString &string) const
 
void get (uint04 index, Vector< 32, bool > &value) const
 
template<uint01 t_dims, class t_type >
void get (uint04 index, Bounds< t_dims, t_type > &bounds) const
 
template<uint01 t_dims, class t_type >
void get (uint04 index, Triangle< t_dims, t_type > &tri) const
 
template<class t_class >
t_class get (uint04 index) const
 
template<class t_class >
t_class get (uint04 index, uint04 sub_index) const
 
template<uint01 t_dims, class t_type >
void getVector (uint04 index, Vector< t_dims, t_type > &value) const
 
template<class t_type >
void insert (uint04 index, const t_type &value)
 
virtual void setAll (uint04 to_location, uint04 from_location, uint04 size, const TableColumn &from_column)
 
template<class t_type >
void setAll (uint04 to_location, uint04 from_location, uint04 size, const TableColumn &from_column)
 
virtual TableColumngetSelected (const Buffer< bool > &selected_indices) const =0
 
virtual void insertIndices (uint04 location, uint04 size)=0
 
virtual void removeIndices (uint04 location, uint04 size)=0
 
virtual void removeIndices (const Buffer< uint04 > &offset_lookup_list)=0
 
Time modifiedTime () const
 
void clearUpdates ()
 
void updateAll ()
 
virtual void updateFrom (const TableColumn &column)
 
void update (const TableChange &change)
 
template<class t_type >
void setDefaultValue (const t_type &value)
 
template<class t_type >
t_type getDefaultValue () const
 
const Buffer< TableChange > & changes () const
 
template<class t_type >
Buffer< t_type > getAll (uint04 start, uint04 size) const
 
Buffer< TableChangechangesSince (const Time &time) const
 
Buffer< TableChangechangesSince (const Time &time, const Bounds< 1, uint04 > &range) const
 
bool hasChangesSince (const Time &time, const Bounds< 1, uint04 > &range) const
 
BinaryCompressionObjectcompressionObject ()
 
bool compressionValid () const
 
template<>
void set (uint04 index, const aiColor4D &value)
 
template<>
aiColor4D get (uint04 index) const
 
template<>
void set (uint04 index, const aiVector3D &value)
 
template<>
aiVector3D get (uint04 index) const
 
template<>
void set (uint04 index, const aiVector2D &value)
 
template<>
aiVector2D get (uint04 index) const
 

Protected Member Functions

void _mapToFile (BinaryFile &file, CompressionMode compression)
 
void _mapToFile (BinaryFile &file, BinaryCompressionObject &object)
 
decltype(auto) _setDefaultValue (const t_type &value)
 
decltype(auto) _value (uint04 index)
 
decltype(auto) _value (uint04 index) const
 
decltype(auto) defaultValue ()
 
decltype(auto) defaultValue () const
 
- Protected Member Functions inherited from TableColumn
template<uint01 t_dims>
void _setAll (uint04 to_location, uint04 from_location, uint04 size, const TableColumn &from_column)
 
virtual uint08 tableHash () const
 

Protected Attributes

Buffer< t_type > m_buffer
 
Buffer< uint01m_compressed_data
 
- Protected Attributes inherited from TableColumn
BinaryCompressionObject m_compression_object
 
Time m_modified_time
 
String m_label
 
TypeInfo m_type
 
uint08 m_compression_hash
 
Buffer< TableChangem_changes
 
CompressionMode m_compression_mode = CompressionMode::e_default_compression
 
bool m_compression_valid
 

Constructor & Destructor Documentation

◆ TableColumnBuffer() [1/3]

template<class t_type >
TableColumnBuffer ( const String & label,
const TypeInfo type )
inline

◆ TableColumnBuffer() [2/3]

template<class t_type >
TableColumnBuffer ( const String & label,
const TypeInfo type,
const t_type & default_value )
inline

◆ TableColumnBuffer() [3/3]

template<class t_type >
TableColumnBuffer ( const Buffer< t_type > & buffer,
const String & label,
const TypeInfo type )
inline

Member Function Documentation

◆ _mapToFile() [1/2]

template<class t_type >
void _mapToFile ( BinaryFile & file,
BinaryCompressionObject & object )
inlineprotected

◆ _mapToFile() [2/2]

template<class t_type >
void _mapToFile ( BinaryFile & file,
CompressionMode compression )
inlineprotected

◆ _setDefaultValue()

template<class t_type >
decltype(auto) _setDefaultValue ( const t_type & value)
inlineprotected

◆ _value() [1/2]

template<class t_type >
decltype(auto) _value ( uint04 index)
inlineprotected

◆ _value() [2/2]

template<class t_type >
decltype(auto) _value ( uint04 index) const
inlineprotected

◆ addRow()

template<class t_type >
virtual void addRow ( )
inlineoverridevirtual

Reimplemented from TableColumn.

◆ begin() [1/2]

template<class t_type >
const void * begin ( ) const
inlineoverridevirtual

Implements TableColumn.

◆ begin() [2/2]

template<class t_type >
void * begin ( )
inlineoverridevirtual

Implements TableColumn.

◆ beginsWith() [1/2]

template<class t_type >
bool beginsWith ( uint04 index,
const char * value,
bool ignore_case ) const
inlinenodiscardoverridevirtual

Implements TableColumn.

Reimplemented in TableColumnString.

◆ beginsWith() [2/2]

template<class t_type >
bool beginsWith ( uint04 index,
const String & value,
bool ignore_case ) const
inlinenodiscardoverridevirtual

Implements TableColumn.

Reimplemented in TableColumnString.

◆ compress()

template<class t_type >
virtual void compress ( BinaryCompressionObject & object)
inlineoverridevirtual

Implements TableColumn.

◆ contains() [1/2]

template<class t_type >
bool contains ( uint04 index,
const char * value,
bool ignore_case ) const
inlinenodiscardoverridevirtual

Implements TableColumn.

Reimplemented in TableColumnString.

◆ contains() [2/2]

template<class t_type >
bool contains ( uint04 index,
const String & value,
bool ignore_case ) const
inlinenodiscardoverridevirtual

Implements TableColumn.

Reimplemented in TableColumnString.

◆ copyRow()

template<class t_type >
virtual void copyRow ( uint04 source,
uint04 destination )
inlineoverridevirtual

Implements TableColumn.

◆ copyRows()

template<class t_type >
virtual void copyRows ( uint04 source,
uint04 destination,
uint04 size )
inlineoverridevirtual

Implements TableColumn.

◆ defaultValue() [1/2]

template<class t_type >
decltype(auto) defaultValue ( )
inlineprotected

◆ defaultValue() [2/2]

template<class t_type >
decltype(auto) defaultValue ( ) const
inlineprotected

◆ end() [1/2]

template<class t_type >
const void * end ( ) const
inlineoverridevirtual

Implements TableColumn.

◆ end() [2/2]

template<class t_type >
void * end ( )
inlineoverridevirtual

Implements TableColumn.

◆ insert()

template<class t_type >
void insert ( uint04 index)
inlineoverridevirtual

Implements TableColumn.

◆ insertRows()

template<class t_type >
virtual void insertRows ( uint04 location,
uint04 size )
inlineoverridevirtual

Implements TableColumn.

◆ isSame() [1/2]

template<class t_type >
bool isSame ( uint04 index,
const char * value ) const
inlinenodiscardoverridevirtual

Implements TableColumn.

Reimplemented in TableColumnString.

◆ isSame() [2/2]

template<class t_type >
bool isSame ( uint04 index,
const String & value ) const
inlinenodiscardoverridevirtual

Implements TableColumn.

Reimplemented in TableColumnString.

◆ mapFromFile()

template<class t_type >
virtual void mapFromFile ( BinaryFile & file,
uint08 version_number )
inlineoverridevirtual

Implements TableColumn.

Reimplemented in TableColumnString.

◆ mapToFile() [1/2]

template<class t_type >
virtual void mapToFile ( BinaryFile & file,
BinaryCompressionObject & object )
inlineoverridevirtual

Implements TableColumn.

◆ mapToFile() [2/2]

template<class t_type >
virtual void mapToFile ( BinaryFile & file,
int compression )
inlineoverridevirtual

Implements TableColumn.

◆ removeRow()

template<class t_type >
void removeRow ( uint04 index)
inlineoverridevirtual

Implements TableColumn.

◆ removeRows() [1/3]

template<class t_type >
virtual void removeRows ( const Buffer< uint04 > & sorted_romove_indices)
inlineoverridevirtual

Implements TableColumn.

◆ removeRows() [2/3]

template<class t_type >
virtual void removeRows ( uint04 index,
uint04 size )
inlineoverridevirtual

Implements TableColumn.

◆ removeRows() [3/3]

template<class t_type >
void removeRows ( uint04 offset,
const Buffer< bool > & indices )
inlineoverridevirtual

Implements TableColumn.

Reimplemented in TableColumnString.

◆ setSize()

template<class t_type >
void setSize ( uint04 size)
inlineoverridevirtual

Implements TableColumn.

◆ size()

template<class t_type >
uint04 size ( ) const
inlineoverridevirtual

Implements TableColumn.

Member Data Documentation

◆ m_buffer

template<class t_type >
Buffer<t_type> m_buffer
protected

◆ m_compressed_data

template<class t_type >
Buffer<uint01> m_compressed_data
protected

The documentation for this class was generated from the following file: