API Documentation
Loading...
Searching...
No Matches
TableColumn Class Referenceabstract

#include <TableColumn.h>

Inheritance diagram for TableColumn:
[legend]
Collaboration diagram for TableColumn:
[legend]

Public Member Functions

 TableColumn (const String &label)
 
 TableColumn (const String &label, const TypeInfo type)
 
virtual ~TableColumn ()
 
const Stringlabel () const
 
void setLabel (const String &label)
 
virtual void setSize (uint04 size)=0
 
virtual void setRowSize (uint04, uint04)
 
virtual uint04 getRowSize (uint04) const
 
virtual TypeInfo type () const
 
virtual void removeRow (uint04 index)=0
 
virtual void removeRows (uint04 index, uint04 size)=0
 
virtual void removeRows (const Buffer< uint04 > &sorted_remove_indices)=0
 
virtual void insert (uint04 index)=0
 
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 compress (BinaryCompressionObject &object)=0
 
virtual void compressIfNeeded (BinaryCompressionObject &object)
 
void updateCompressionInfo (BinaryCompressionObject &object)
 
virtual void mapToFile (BinaryFile &file, int compression)=0
 
virtual void mapToFile (BinaryFile &file, BinaryCompressionObject &object)=0
 
virtual void mapFromFile (BinaryFile &file, uint08 version_number)=0
 
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)
 
virtual bool isSame (uint04 index, const String &value) const =0
 
virtual bool isSame (uint04 index, const char *value) const =0
 
virtual bool contains (uint04 index, const String &value, bool ignore_case) const =0
 
virtual bool contains (uint04 index, const char *value, bool ignore_case) const =0
 
virtual bool beginsWith (uint04 index, const String &value, bool ignore_case) const =0
 
virtual bool beginsWith (uint04 index, const char *value, bool ignore_case) const =0
 
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 insertRows (uint04 location, uint04 size)=0
 
virtual void addRow ()
 
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
 
virtual void removeRows (uint04 offset, const Buffer< bool > &indices)=0
 
Time modifiedTime () const
 
void clearUpdates ()
 
void updateAll ()
 
virtual void updateFrom (const TableColumn &column)
 
void update (const TableChange &change)
 
virtual void copyRow (uint04 source, uint04 destination)=0
 
virtual void copyRows (uint04 source, uint04 destination, uint04 size)=0
 
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
 
virtual uint04 size () const =0
 
virtual void * begin ()=0
 
virtual void * end ()=0
 
virtual const void * begin () const =0
 
virtual const void * end () const =0
 
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

template<uint01 t_dims>
void _setAll (uint04 to_location, uint04 from_location, uint04 size, const TableColumn &from_column)
 
virtual uint08 tableHash () const
 

Protected Attributes

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

◆ TableColumn() [1/2]

TableColumn ( const String & label)

◆ TableColumn() [2/2]

TableColumn ( const String & label,
const TypeInfo type )

◆ ~TableColumn()

~TableColumn ( )
virtual

Member Function Documentation

◆ _setAll()

template<uint01 t_dims>
void _setAll ( uint04 to_location,
uint04 from_location,
uint04 size,
const TableColumn & from_column )
inlineprotected

◆ addRow()

◆ begin() [1/2]

◆ begin() [2/2]

◆ beginsWith() [1/2]

◆ beginsWith() [2/2]

◆ changes()

const Buffer< TableChange > & changes ( ) const
inline

◆ changesSince() [1/2]

Buffer< TableChange > changesSince ( const Time & time) const

◆ changesSince() [2/2]

Buffer< TableChange > changesSince ( const Time & time,
const Bounds< 1, uint04 > & range ) const

◆ clearUpdates()

void clearUpdates ( )
inline

◆ compress()

◆ compressIfNeeded()

virtual void compressIfNeeded ( BinaryCompressionObject & object)
inlinevirtual

◆ compressionObject()

BinaryCompressionObject & compressionObject ( )
inline

◆ compressionValid()

bool compressionValid ( ) const
inline

◆ contains() [1/2]

◆ contains() [2/2]

◆ copyRow()

◆ copyRows()

◆ end() [1/2]

◆ end() [2/2]

◆ get() [1/44]

template<>
aiColor4D get ( uint04 index) const

◆ get() [2/44]

template<>
aiVector3D get ( uint04 index) const

◆ get() [3/44]

template<>
aiVector2D get ( uint04 index) const

◆ get() [4/44]

template<class t_class >
t_class get ( uint04 index) const
inline

◆ get() [5/44]

void get ( uint04 index,
BitFlag & bitflag ) const
inline

◆ get() [6/44]

◆ get() [7/44]

template<uint01 t_dims, class t_type >
void get ( uint04 index,
Bounds< t_dims, t_type > & bounds ) const
inline

◆ get() [8/44]

void get ( uint04 index,
File & file ) const
inline

◆ get() [9/44]

◆ get() [10/44]

◆ get() [11/44]

void get ( uint04 index,
Matrix< fltp04 > & transform ) const
virtual

◆ get() [12/44]

void get ( uint04 index,
Matrix< fltp08 > & transform ) const
virtual

◆ get() [13/44]

template<class t_type , uint01 t_col, uint01 t_row>
void get ( uint04 index,
Matrix< t_type, t_col, t_row > & matrix ) const
inline

◆ get() [14/44]

◆ get() [15/44]

◆ get() [16/44]

◆ get() [17/44]

◆ get() [18/44]

◆ get() [19/44]

◆ get() [20/44]

template<class t_class >
std::enable_if< ObjectInfo< t_class >::Enum >::type get ( uint04 index,
t_class & enum_value ) const
inline

◆ get() [21/44]

template<class t_class >
std::enable_if< IsVec< t_class >::value &&t_class::NumberOfDimensions()!=1 >::type get ( uint04 index,
t_class & vector ) const
inline

◆ get() [22/44]

void get ( uint04 index,
Time & time ) const
inline

◆ get() [23/44]

void get ( uint04 index,
TranslatedString & string ) const
inline

◆ get() [24/44]

template<uint01 t_dims, class t_type >
void get ( uint04 index,
Triangle< t_dims, t_type > & tri ) const
inline

◆ get() [25/44]

◆ get() [26/44]

◆ get() [27/44]

◆ get() [28/44]

template<class t_class >
t_class get ( uint04 index,
uint04 sub_index ) const
inline

◆ get() [29/44]

◆ get() [30/44]

◆ get() [31/44]

◆ get() [32/44]

◆ get() [33/44]

◆ get() [34/44]

◆ get() [35/44]

◆ get() [36/44]

◆ get() [37/44]

◆ get() [38/44]

◆ get() [39/44]

◆ get() [40/44]

◆ get() [41/44]

◆ get() [42/44]

virtual void get ( uint04 index,
UUID & vector ) const
inlinevirtual

Reimplemented in TableVectorType< 1, UUID >.

◆ get() [43/44]

template<class t_class >
void get ( uint04 index,
Vector< 1, t_class > & vector ) const
inline

◆ get() [44/44]

void get ( uint04 index,
Vector< 32, bool > & value ) const
inline

◆ getAll()

template<class t_type >
Buffer< t_type > getAll ( uint04 start,
uint04 size ) const
inline

◆ getDefaultValue()

template<class t_type >
t_type getDefaultValue ( ) const
inline

◆ getIndexOf()

template<class t_type >
uint04 getIndexOf ( const t_type & object) const
inline

◆ getRowSize()

◆ getSelected()

◆ getVector() [1/6]

void getVector ( uint04 index,
Vector< 1, uint04 > & vector ) const
virtual

◆ getVector() [2/6]

void getVector ( uint04 index,
Vector< 2, uint04 > & vector ) const
virtual

◆ getVector() [3/6]

void getVector ( uint04 index,
Vector< 3, fltp04 > & vector ) const
virtual

◆ getVector() [4/6]

void getVector ( uint04 index,
Vector< 3, fltp08 > & vector ) const
virtual

◆ getVector() [5/6]

void getVector ( uint04 index,
Vector< 3, uint04 > & vector ) const
virtual

◆ getVector() [6/6]

template<uint01 t_dims, class t_type >
void getVector ( uint04 index,
Vector< t_dims, t_type > & value ) const
inline

◆ hasChangesSince()

bool hasChangesSince ( const Time & time,
const Bounds< 1, uint04 > & range ) const

◆ insert() [1/2]

◆ insert() [2/2]

template<class t_type >
void insert ( uint04 index,
const t_type & value )
inline

◆ insertIndices()

◆ insertRows()

◆ isSame() [1/2]

◆ isSame() [2/2]

◆ label()

const String & label ( ) const

◆ mapFromFile()

◆ mapToFile() [1/2]

◆ mapToFile() [2/2]

◆ modifiedTime()

Time modifiedTime ( ) const
inline

◆ removeIndices() [1/2]

◆ removeIndices() [2/2]

◆ removeRow()

◆ removeRows() [1/3]

◆ removeRows() [2/3]

◆ removeRows() [3/3]

◆ set() [1/41]

template<class t_type >
void set ( t_type * values,
uint04 start_index,
uint04 size )
inline

◆ set() [2/41]

◆ set() [3/41]

template<>
void set ( uint04 index,
const aiColor4D & value )

◆ set() [4/41]

template<>
void set ( uint04 index,
const aiVector2D & value )

◆ set() [5/41]

template<>
void set ( uint04 index,
const aiVector3D & value )

◆ set() [6/41]

void set ( uint04 index,
const BitFlag & bitflag )
inline

◆ set() [7/41]

template<uint01 t_dims, class t_type >
void set ( uint04 index,
const Bounds< t_dims, t_type > & value )
inline

◆ set() [8/41]

void set ( uint04 index,
const Matrix< fltp04 > & transform )
virtual

◆ set() [9/41]

void set ( uint04 index,
const Matrix< fltp08 > & transform )
virtual

◆ set() [10/41]

template<class t_type , uint01 t_col, uint01 t_row>
void set ( uint04 index,
const Matrix< t_type, t_col, t_row > & matrix )
inline

◆ set() [11/41]

◆ set() [12/41]

template<class t_class >
std::enable_if< IsVec< t_class >::value >::type set ( uint04 index,
const t_class & value )
inline

◆ set() [13/41]

template<class t_class >
std::enable_if< ObjectInfo< t_class >::Enum >::type set ( uint04 index,
const t_class & value )
inline

◆ set() [14/41]

template<class t_class >
std::enable_if<!ObjectInfo< t_class >::Enum &&!IsVec< t_class >::value >::type set ( uint04 index,
const t_class & value )
inline

◆ set() [15/41]

void set ( uint04 index,
const Time & time )

◆ set() [16/41]

template<uint01 t_dims, class t_type >
void set ( uint04 index,
const Triangle< t_dims, t_type > & value )
inline

◆ set() [17/41]

void set ( uint04 index,
const UUID & value )
virtual

Reimplemented in TableVectorType< 1, UUID >.

◆ set() [18/41]

void set ( uint04 index,
const Vector< 32, bool > & value )

◆ set() [19/41]

◆ set() [20/41]

◆ set() [21/41]

◆ set() [22/41]

◆ set() [23/41]

◆ set() [24/41]

◆ set() [25/41]

◆ set() [26/41]

◆ set() [27/41]

◆ set() [28/41]

◆ set() [29/41]

◆ set() [30/41]

◆ set() [31/41]

◆ set() [32/41]

◆ set() [33/41]

◆ set() [34/41]

◆ set() [35/41]

◆ set() [36/41]

◆ set() [37/41]

◆ set() [38/41]

◆ set() [39/41]

◆ set() [40/41]

◆ set() [41/41]

◆ setAll() [1/2]

virtual void setAll ( uint04 to_location,
uint04 from_location,
uint04 size,
const TableColumn & from_column )
inlinevirtual

◆ setAll() [2/2]

template<class t_type >
void setAll ( uint04 to_location,
uint04 from_location,
uint04 size,
const TableColumn & from_column )
inline

◆ setCompressionMode()

void setCompressionMode ( CompressionMode compression_mode)
inline

◆ setDefaultValue()

template<class t_type >
void setDefaultValue ( const t_type & value)
inline

◆ setLabel()

void setLabel ( const String & label)

◆ setRowSize()

virtual void setRowSize ( uint04 ,
uint04  )
inlinevirtual

◆ setSize()

◆ setVector()

template<uint01 t_dims, class t_type >
void setVector ( uint04 index,
const Vector< t_dims, t_type > & value )
inline

◆ size()

◆ tableHash()

◆ type()

virtual TypeInfo type ( ) const
inlinevirtual

◆ update()

void update ( const TableChange & change)

◆ updateAll()

void updateAll ( )
inline

◆ updateCompressionInfo()

void updateCompressionInfo ( BinaryCompressionObject & object)
inline

◆ updateFrom()

void updateFrom ( const TableColumn & column)
virtual

Reimplemented in GraphicsBuffer.

Member Data Documentation

◆ m_changes

Buffer<TableChange> m_changes
protected

◆ m_compression_hash

uint08 m_compression_hash
protected

◆ m_compression_mode

◆ m_compression_object

BinaryCompressionObject m_compression_object
protected

◆ m_compression_valid

bool m_compression_valid
protected

◆ m_label

String m_label
protected

◆ m_modified_time

Time m_modified_time
protected

◆ m_type

TypeInfo m_type
protected

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