Clarisse 5.0 SP8 SDK  5.0.5.8.0
 All Classes Namespaces Functions Variables Typedefs Enumerations Enumerator Friends Groups Pages
Classes | Public Member Functions | Static Public Member Functions | List of all members
CoreList< T > Class Template Reference

Template List Collection. More...

Inheritance diagram for CoreList< T >:
CoreBaseType

Public Member Functions

 CoreList (const CoreList< T > &list)
 
void add (const T &value)
 Adds the specified get_item to the CoreList.
 
void append (const CoreList< T > &list)
 Appends the specified list into the list.
 
T & get_item (const unsigned int &index) const
 
void set_item (const unsigned int &index, const T &val)
 
CoreListId get_first_item_id () const
 
CoreListId get_last_item_id () const
 
CoreListId get_item_id (const unsigned int &index) const
 
CoreListId get_item_id_by_value (const T &value) const
 
T & get_item_by_id (const CoreListId &id) const
 
unsigned int get_index_by_id (const CoreListId &id) const
 
bool is_valid_id (const CoreListId &id) const
 
void insert (const T &value, const unsigned int &index)
 Inserts element before the specified index.
 
void insert_by_id (const T &value, const CoreListId &id)
 Insert element before the specified index.
 
void swap_values_by_id (const CoreListId &id1, const CoreListId &id2)
 Swaps values between id1 and id2.
 
CoreListId get_previous_id (const CoreListId &id) const
 
CoreListId get_next_id (const CoreListId &id) const
 
void remove (const unsigned int &index)
 Removes the specified located at the specified rank of the CoreList.
 
void remove_by_id (const CoreListId &id)
 
void remove_all ()
 Removes all items from the CoreList.
 
void remove_last ()
 
const unsigned int & get_count () const
 
void copy_from (const CoreList< T > &source)
 Copies data from source.
 
void copy_to (CoreList< T > &dest) const
 Copies list content to incoming list.
 
void get_array (CoreArray< T > &array) const
 Fills incoming array with list content.
 
void get_vector (CoreVector< T > &array) const
 Fills incoming vector with list content.
 
void set_array (const T *array, const unsigned int &count)
 Sets list content from incoming array, only for count items.
 
void set_array (const CoreBasicArray< T > &array)
 Sets list content from incoming array.
 
void resize (const unsigned int &size, const bool &preserve=false)
 for command argument macro
 
const T & front () const
 Returns first entry value.
 
T & front ()
 Returns first entry value.
 
const T & back () const
 Returns last entry value.
 
T & back ()
 Returns last entry value.
 
T & operator[] (const unsigned int &index)
 Returns item at specified index. Index must be valid.
 
const T & operator[] (const unsigned int &index) const
 Returns item at specified index. Index must be valid.
 
void operator= (const CoreList< T > &list)
 Replace list content with incoming list one.
 
size_t get_memory_size () const
 
CoreListIterator< T, false > begin (void)
 Return an iterator on the first item of the list.
 
CoreListIterator< T, false > begin (void) const
 Return an iterator on the first item of the list.
 
CoreListIterator< T, false > end (void)
 Return an end iterator.
 
CoreListIterator< T, false > end (void) const
 Return an end iterator.
 
CoreListIterator< T, true > rbegin (void)
 
CoreListIterator< T, true > rbegin (void) const
 
CoreListIterator< T, true > rend (void)
 Return an end iterator.
 
CoreListIterator< T, true > rend (void) const
 Return an end iterator.
 
const CoreClassInfoget_class_info () const
 
- Public Member Functions inherited from CoreBaseType
bool is_kindof (const CoreClassInfo &cinfo) const
 

Static Public Member Functions

static const CoreClassInfoclass_info ()
 
- Static Public Member Functions inherited from CoreBaseType
static const CoreClassInfoclass_info ()
 Get the type descriptor of this instance.
 

Detailed Description

template<class T>
class CoreList< T >

Template List Collection.

Template list collection class.

Member Function Documentation

template<class T >
CoreListIterator< T, true > CoreList< T >::rbegin ( void  )
inline

Return a reverse iterator on the last item of the list.

Note
Use this method if you want to iterate a CoreList from the last item to the first.
See Also
rend
template<class T >
CoreListIterator< T, true > CoreList< T >::rbegin ( void  ) const
inline

Return a reverse iterator on the last item of the list.

Note
Use this method if you want to iterate a CoreList from the last item to the first.
See Also
rend