C++ mpi module for stochmagnet_main Package
Public Member Functions | Static Public Member Functions | List of all members
CORE_StringsList Class Reference

this class describes an array of dynamical size with implementation of method defined in CORE_TBaseArray More...

#include <CORE_StringsList.h>

Inheritance diagram for CORE_StringsList:
Inheritance graph
[legend]
Collaboration diagram for CORE_StringsList:
Collaboration graph
[legend]

Public Member Functions

 CORE_StringsList ()
 build an instance of class
 
 CORE_StringsList (const std::initializer_list< tString > &list)
 build a copy of list More...
 
 CORE_StringsList (std::initializer_list< tString > &&list)
 build a copy of list More...
 
 CORE_StringsList (const tIndex &n)
 build an array of size n More...
 
virtual ~CORE_StringsList ()
 destroy the instance this
 
virtual CORE_UniquePointer< CORE_List< tString, tIndex, CORE_StringsList > > newInstance () const override
 create a New instance within an unique smart pointer More...
 
virtual tMemSize getMemorySize () const override
 return the memory size of the class and the memory size of all its attributes/associations More...
 
virtual tMemSize getContentsMemorySize () const override
 return nthe memory size of the included associations More...
 
CORE_StringsListoperator= (const std::initializer_list< tString > &values)
 initialize the array to the values of list More...
 
CORE_StringsListoperator= (std::initializer_list< tString > &&values)
 initialize the array to the values of list More...
 
- Public Member Functions inherited from CORE_VectorList< tString, CORE_StringsList >
void setSize (const tIndex &n)
 set the size of the container More...
 
tIndex getSize () const
 return the size of the container More...
 
const tString & operator[] (const tIndex &i) const
 get the i-th element for reading. Do not verify the bounds More...
 
tString & operator[] (const tIndex &i)
 get the i-th element for writting. Do not verify the bounds More...
 
constexpr auto cbegin () const
 return begin iterator for reading More...
 
constexpr auto cend () const
 return end iterator for reading More...
 
auto begin ()
 return begin iterator for writing More...
 
auto end ()
 return end iterator for writing More...
 
auto rbegin ()
 return reverse begin iterator for writing More...
 
auto rend ()
 return reverse end iterator for writing More...
 
constexpr auto crbegin () const
 return reverse begin iterator for reading More...
 
constexpr auto crend () const
 return reverse end iterator for reading More...
 
void copy (const Self &cpy)
 copy the container More...
 
void copy (Self &&cpy)
 copy the conatiner : mv is destroyed after this More...
 
void copy (const std::initializer_list< tString > &vs)
 initialize the array to the values of list More...
 
void copy (std::initializer_list< tString > &&vs)
 initialize the array to the values of list More...
 
std::vector< tString > & getValues ()
 return the values of the list More...
 
const std::vector< tString > & getValues () const
 return the values of the list More...
 
tString getDataTypeName () const
 get the type of data More...
 
void transform (LambdaFct &&F)
 transform the transform element with the lambda function Ti = F(Ti) More...
 
void transform (LambdaFct &&F, const Self &X)
 transform the transform element with the lambda function Ti = F(Xi) More...
 
void transform (LambdaFct &&F, const Self &X, const Self &Y)
 transform the transform element with the lambda function Ti = F(Xi,Yi) More...
 
void directionalSort (const tUChar &order)
 sort the element More...
 
- Public Member Functions inherited from CORE_List< T, K, I >
const T & operator[] (const K &i) const
 get the i-th element for reading. Do not verify the bounds More...
 
T & operator[] (const K &i)
 get the i-th element for writting. Do not verify the bounds More...
 
tString getDataTypeName () const
 get the type of data More...
 
void sort ()
 sort the list in the incresing order
 
void directionalSort (const tUChar &order)
 sort the element More...
 
- Public Member Functions inherited from CORE_Collection< T, I >
void setSize (const tIndex &n)
 set the size of the container More...
 
tIndex getSize () const
 return the size of the container More...
 
void resize (const tIndex &n)
 modify the size of the array and keep its old values
 
const T & operator[] (const tIndex &i) const
 get the i-th element for reading. Do not verify the bounds More...
 
T & operator[] (const tIndex &i)
 get the i-th element for writting. Do not verify the bounds More...
 
constexpr auto cbegin () const
 return begin iterator for reading More...
 
constexpr auto cend () const
 return end iterator for reading More...
 
auto begin ()
 return begin iterator for writing More...
 
auto end ()
 return end iterator for writing More...
 
auto rbegin ()
 return reverse begin iterator for writing More...
 
auto rend ()
 return reverse end iterator for writing More...
 
constexpr auto crbegin () const
 return reverse begin iterator for reading More...
 
constexpr auto crend () const
 return reverse end iterator for reading More...
 
template<typename LambdaFct >
void transform (LambdaFct &&F)
 transform the transform element with the lambda function Ti = F(Ti) More...
 
tString getDataTypeName () const
 get the type of data More...
 
virtual tString toString () const override
 return the string representation of the object node More...
 
- Public Member Functions inherited from CORE_Object
template<class T >
std::shared_ptr< T > getSharedPointer ()
 return the shared pointer for this More...
 
template<class T >
std::shared_ptr< const T > getConstSharedPointer () const
 return a const shared pointer for this More...
 
template<class T >
tBoolean isInstanceOf () const
 test if the clas T is an instance of this class More...
 
tString getClassName () const
 return the name of the class More...
 
tString getPointerString () const
 retrun the pointer of the class as a string More...
 
tString getIdentityString () const
 retrun the string identification of the class More...
 

Static Public Member Functions

static CORE_UniquePointer< CORE_StringsListNew ()
 return a unique pointer of the class More...
 
- Static Public Member Functions inherited from CORE_VectorList< tString, CORE_StringsList >
static void Copy (const std::valarray< tString > &X, std::vector< tString > &R)
 copy the array More...
 
static void Copy (const std::initializer_list< tString > &X, std::vector< tString > &R)
 copy the array R=X More...
 
static void Copy (std::initializer_list< tString > &&X, std::vector< tString > &R)
 copy the array R=X More...
 
static void Copy (const std::vector< Q > &X, std::vector< tString > &R)
 copy the array R=X More...
 
static void Copy (const std::vector< tString > &X, std::vector< tString > &R)
 copy the array More...
 
static void Copy (const tIndex &n, const Q *X, std::vector< tString > &R)
 copy the array More...
 
- Static Public Member Functions inherited from CORE_Object
static tBoolean EnableMemoryStack (const tBoolean &isMemoryChecked)
 enable the memory stack More...
 
static void EnableMemoryStack ()
 enable the memory stack
 
static void DisableMemoryStack ()
 disable the memory stack
 
static tBoolean IsMemoryStackEnabled ()
 return trur if the memory stack is enabled
 
static tString MemoryStackToString ()
 get the memory stack in string More...
 
static tIndex GetRegisteredClassesNumber ()
 get the memory stack in string More...
 

Additional Inherited Members

- Protected Member Functions inherited from CORE_VectorList< tString, CORE_StringsList >
 CORE_VectorList ()
 build a list
 
 CORE_VectorList (const tIndex &n)
 build a list of size n
 
virtual ~CORE_VectorList ()
 destroy the instance of class
 
- Protected Member Functions inherited from CORE_List< T, K, I >
 CORE_List ()
 build an array of T*
 
virtual ~CORE_List ()
 destroy an array of T*
 
- Protected Member Functions inherited from CORE_Collection< T, I >
 CORE_Collection ()
 build an array of T*
 
virtual ~CORE_Collection ()
 destroy an array of T*
 
- Protected Member Functions inherited from CORE_Object
 CORE_Object ()
 build an instance of the object
 
virtual ~CORE_Object ()
 destroy the instance of object std

 

Detailed Description

this class describes an array of dynamical size with implementation of method defined in CORE_TBaseArray

the memory location is allocated in the heap.

Constructor & Destructor Documentation

◆ CORE_StringsList() [1/3]

CORE_StringsList::CORE_StringsList ( const std::initializer_list< tString > &  list)
inline

build a copy of list

Parameters
[in]list: initializer list

◆ CORE_StringsList() [2/3]

CORE_StringsList::CORE_StringsList ( std::initializer_list< tString > &&  list)
inline

build a copy of list

Parameters
[in]list: initializer list

◆ CORE_StringsList() [3/3]

CORE_StringsList::CORE_StringsList ( const tIndex &  n)
inlineexplicit

build an array of size n

Parameters
[in]nsize of the array

Member Function Documentation

◆ getContentsMemorySize()

virtual tMemSize CORE_StringsList::getContentsMemorySize ( ) const
inlineoverridevirtual

return nthe memory size of the included associations

Returns
the memory size of the storage in bytes 1 Kb = 1024 bytes 1 Mb = 1024 Kb 1 Gb = 1024 Mb 1 Tb = 1024 Gb 1 Hb = 1024 Tb

Reimplemented from CORE_VectorList< tString, CORE_StringsList >.

◆ getMemorySize()

virtual tMemSize CORE_StringsList::getMemorySize ( ) const
inlineoverridevirtual

return the memory size of the class and the memory size of all its attributes/associations

Returns
the memory size of the class and the memory size of its attributes/associations in bytes 1 octet = 1 byte 1 Ko = 1024 bytes 1 Mo = 1024 Ko 1 Go = 1024 Mo

Reimplemented from CORE_VectorList< tString, CORE_StringsList >.

◆ New()

static CORE_UniquePointer<CORE_StringsList> CORE_StringsList::New ( )
inlinestatic

return a unique pointer of the class

Returns
an unique pointer of the class

◆ newInstance()

virtual CORE_UniquePointer<CORE_List<tString,tIndex,CORE_StringsList> > CORE_StringsList::newInstance ( ) const
inlineoverridevirtual

create a New instance within an unique smart pointer

Returns
an unqie pointer of this class

Implements CORE_List< T, K, I >.

◆ operator=() [1/2]

CORE_StringsList& CORE_StringsList::operator= ( const std::initializer_list< tString > &  values)
inline

initialize the array to the values of list

Parameters
[in]values: values of the array

◆ operator=() [2/2]

CORE_StringsList& CORE_StringsList::operator= ( std::initializer_list< tString > &&  values)
inline

initialize the array to the values of list

Parameters
[in]values: values of the array

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