www.cemf.ir
ListPtr< T > Class Template Reference
+ Inheritance diagram for ListPtr< T >:

Public Types

using ListPtrType = ListPtr< T >
 
using listType = std::list< T * >
 
using iterator = typename listType::iterator
 
using const_iterator = typename listType::const_iterator
 

Public Member Functions

 TypeInfoTemplateNV11 ("ListPtr", T)
 
 ListPtr ()
 
 ListPtr (size_t len)
 
 ListPtr (const ListPtrType &src)
 
ListPtrTypeoperator= (const ListPtrType &rhs)
 
 ListPtr (ListPtrType &&src)
 
ListPtrTypeoperator= (ListPtrType &&rhs)
 
ListPtrTypeclonePtr () const
 
uniquePtr< ListPtrTypeclone () const
 
 ~ListPtr ()
 
uniquePtr< T > set (size_t i, T *ptr)
 
uniquePtr< T > set (size_t i, uniquePtr< T > &&ptr)
 
template<typename... Args>
uniquePtr< T > setSafe (size_t i, Args &&... args)
 
void push_back (T *ptr)
 
void push_back (uniquePtr< T > &&ptr)
 
template<typename... Args>
void push_backSafe (Args &&... args)
 
T & operator[] (size_t i)
 
const T & operator[] (size_t i) const
 
size_t size () const
 
auto empty () const
 
uniquePtr< T > release (size_t i)
 
void clear ()
 
void clear (size_t i)
 
iterator begin ()
 
const_iterator begin () const
 
iterator end ()
 
const_iterator end () const
 
template<typename... Args>
pFlow::uniquePtr< T > setSafe (size_t i, Args &&... args)
 

Static Public Member Functions

template<typename... Args>
static uniquePtr< T > makeSafe (Args &&... args)
 

Protected Member Functions

bool copy (const ListPtrType &src)
 
T * ptr (size_t i)
 
const T * ptr (size_t i) const
 
auto pos (size_t i)
 
auto pos (size_t i) const
 

Protected Attributes

std::list< T * > list_
 

Detailed Description

template<typename T>
class pFlow::ListPtr< T >

Definition at line 37 of file ListPtr.hpp.

Member Typedef Documentation

◆ ListPtrType

using ListPtrType = ListPtr<T>

Definition at line 41 of file ListPtr.hpp.

◆ listType

using listType = std::list<T*>

Definition at line 43 of file ListPtr.hpp.

◆ iterator

using iterator = typename listType::iterator

Definition at line 45 of file ListPtr.hpp.

◆ const_iterator

using const_iterator = typename listType::const_iterator

Definition at line 47 of file ListPtr.hpp.

Constructor & Destructor Documentation

◆ ListPtr() [1/4]

ListPtr ( )
inline

Definition at line 89 of file ListPtr.hpp.

◆ ListPtr() [2/4]

ListPtr ( size_t  len)
inline

Definition at line 95 of file ListPtr.hpp.

◆ ListPtr() [3/4]

ListPtr ( const ListPtrType src)
inline

Definition at line 111 of file ListPtrI.hpp.

◆ ListPtr() [4/4]

ListPtr ( ListPtrType &&  src)
inline

Definition at line 111 of file ListPtr.hpp.

◆ ~ListPtr()

~ListPtr ( )
inline

Definition at line 139 of file ListPtr.hpp.

Member Function Documentation

◆ makeSafe()

static uniquePtr<T> makeSafe ( Args &&...  args)
inlinestatic

Definition at line 50 of file ListPtr.hpp.

◆ copy()

bool copy ( const ListPtrType src)
inlineprotected

Definition at line 22 of file ListPtrI.hpp.

◆ ptr() [1/2]

T * ptr ( size_t  i)
inlineprotected

Definition at line 43 of file ListPtrI.hpp.

Referenced by ListPtr< boundaryIntegration >::clonePtr().

+ Here is the caller graph for this function:

◆ ptr() [2/2]

const T * ptr ( size_t  i) const
inlineprotected

Definition at line 57 of file ListPtrI.hpp.

◆ pos() [1/2]

auto pos ( size_t  i)
inlineprotected

Definition at line 73 of file ListPtrI.hpp.

◆ pos() [2/2]

auto pos ( size_t  i) const
inlineprotected

Definition at line 92 of file ListPtrI.hpp.

◆ TypeInfoTemplateNV11()

TypeInfoTemplateNV11 ( "ListPtr< T >"  ,
 
)

◆ operator=() [1/2]

pFlow::ListPtr< T > & operator= ( const ListPtrType rhs)
inline

Definition at line 129 of file ListPtrI.hpp.

◆ operator=() [2/2]

ListPtrType& operator= ( ListPtrType &&  rhs)
inline

Definition at line 118 of file ListPtr.hpp.

◆ clonePtr()

ListPtrType* clonePtr ( ) const
inline

Definition at line 127 of file ListPtr.hpp.

◆ clone()

uniquePtr<ListPtrType> clone ( ) const
inline

Definition at line 133 of file ListPtr.hpp.

◆ set() [1/2]

pFlow::uniquePtr< T > set ( size_t  i,
T *  ptr 
)
inline

Definition at line 155 of file ListPtrI.hpp.

◆ set() [2/2]

pFlow::uniquePtr< T > set ( size_t  i,
uniquePtr< T > &&  ptr 
)
inline

Definition at line 167 of file ListPtrI.hpp.

◆ setSafe() [1/2]

uniquePtr<T> setSafe ( size_t  i,
Args &&...  args 
)

◆ push_back() [1/2]

void push_back ( T *  ptr)
inline

Definition at line 204 of file ListPtrI.hpp.

◆ push_back() [2/2]

void push_back ( uniquePtr< T > &&  ptr)
inline

Definition at line 213 of file ListPtrI.hpp.

◆ push_backSafe()

void push_backSafe ( Args &&...  args)
inline

Definition at line 221 of file ListPtrI.hpp.

◆ operator[]() [1/2]

T & operator[] ( size_t  i)
inline

Definition at line 230 of file ListPtrI.hpp.

Referenced by boundaryList::boundary().

+ Here is the caller graph for this function:

◆ operator[]() [2/2]

const T & operator[] ( size_t  i) const
inline

Definition at line 249 of file ListPtrI.hpp.

◆ size()

◆ empty()

auto empty
inline

Definition at line 273 of file ListPtrI.hpp.

◆ release()

pFlow::uniquePtr< T > release ( size_t  i)
inline

Definition at line 281 of file ListPtrI.hpp.

◆ clear() [1/2]

void clear
inline

Definition at line 294 of file ListPtrI.hpp.

Referenced by ListPtr< boundaryIntegration >::operator=(), and ListPtr< boundaryIntegration >::~ListPtr().

+ Here is the caller graph for this function:

◆ clear() [2/2]

void clear ( size_t  i)
inline

Definition at line 312 of file ListPtrI.hpp.

◆ begin() [1/2]

iterator begin ( )
inline

Definition at line 190 of file ListPtr.hpp.

◆ begin() [2/2]

const_iterator begin ( ) const
inline

Definition at line 195 of file ListPtr.hpp.

◆ end() [1/2]

iterator end ( )
inline

Definition at line 200 of file ListPtr.hpp.

◆ end() [2/2]

const_iterator end ( ) const
inline

Definition at line 205 of file ListPtr.hpp.

◆ setSafe() [2/2]

pFlow::uniquePtr<T> setSafe ( size_t  i,
Args &&...  args 
)
inline

Definition at line 192 of file ListPtrI.hpp.

Member Data Documentation

◆ list_


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