LibreOffice Module oox (master)
1
|
Template for a vector of ref-counted objects with additional accessor functions. More...
#include <refvector.hxx>
Classes | |
struct | FindFunctor |
struct | ForEachFunctor |
struct | ForEachFunctorWithIndex |
Public Types | |
typedef ::std::vector< std::shared_ptr< ObjType > > | container_type |
typedef container_type::value_type | value_type |
typedef container_type::size_type | size_type |
Public Member Functions | |
value_type | get (sal_Int32 nIndex) const |
Returns a reference to the object with the passed index, or 0 on error. More... | |
template<typename FunctorType > | |
void | forEach (FunctorType aFunctor) const |
Calls the passed functor for every contained object, automatically skips all elements that are empty references. More... | |
template<typename FuncType > | |
void | forEachMem (FuncType pFunc) const |
Calls the passed member function of ObjType on every contained object, automatically skips all elements that are empty references. More... | |
template<typename FuncType , typename ParamType > | |
void | forEachMem (FuncType pFunc, ParamType aParam) const |
Calls the passed member function of ObjType on every contained object, automatically skips all elements that are empty references. More... | |
template<typename FuncType , typename ParamType1 , typename ParamType2 > | |
void | forEachMem (FuncType pFunc, ParamType1 aParam1, ParamType2 aParam2) const |
Calls the passed member function of ObjType on every contained object, automatically skips all elements that are empty references. More... | |
template<typename FuncType , typename ParamType1 , typename ParamType2 , typename ParamType3 > | |
void | forEachMem (FuncType pFunc, ParamType1 aParam1, ParamType2 aParam2, ParamType3 aParam3) const |
Calls the passed member function of ObjType on every contained object, automatically skips all elements that are empty references. More... | |
template<typename FunctorType > | |
void | forEachWithIndex (const FunctorType &rFunctor) const |
Calls the passed functor for every contained object. More... | |
template<typename FuncType , typename ParamType1 , typename ParamType2 > | |
void | forEachMemWithIndex (FuncType pFunc, ParamType1 aParam1, ParamType2 aParam2) const |
Calls the passed member function of ObjType on every contained object. More... | |
template<typename FunctorType > | |
value_type | findIf (const FunctorType &rFunctor) const |
Searches for an element by using the passed functor that takes a constant reference of the object type (const ObjType&). More... | |
Private Member Functions | |
const value_type * | getRef (sal_Int32 nIndex) const |
Template for a vector of ref-counted objects with additional accessor functions.
An instance of the class RefVector< Type > stores elements of the type std::shared_ptr< Type >. The new accessor functions has() and get() work correctly for indexes out of the current range, there is no need to check the passed index before.
Definition at line 41 of file refvector.hxx.
typedef ::std::vector< std::shared_ptr< ObjType > > oox::RefVector< ObjType >::container_type |
Definition at line 44 of file refvector.hxx.
typedef container_type::size_type oox::RefVector< ObjType >::size_type |
Definition at line 46 of file refvector.hxx.
typedef container_type::value_type oox::RefVector< ObjType >::value_type |
Definition at line 45 of file refvector.hxx.
|
inline |
Searches for an element by using the passed functor that takes a constant reference of the object type (const ObjType&).
Definition at line 116 of file refvector.hxx.
Referenced by oox::vml::ShapeContainer::findShape().
|
inline |
Calls the passed functor for every contained object, automatically skips all elements that are empty references.
Definition at line 60 of file refvector.hxx.
Referenced by oox::ole::VbaFormControl::finalizeEmbeddedControls(), and oox::RefVector< AxisModel >::forEachMem().
|
inline |
Calls the passed member function of ObjType on every contained object, automatically skips all elements that are empty references.
Definition at line 68 of file refvector.hxx.
Referenced by oox::ole::VbaProject::attachMacros(), oox::vml::ShapeContainer::finalizeFragmentImport(), oox::ole::VbaFormControl::importStorage(), and oox::ole::VbaFormControl::moveEmbeddedToAbsoluteParent().
|
inline |
Calls the passed member function of ObjType on every contained object, automatically skips all elements that are empty references.
Definition at line 76 of file refvector.hxx.
|
inline |
Calls the passed member function of ObjType on every contained object, automatically skips all elements that are empty references.
Definition at line 84 of file refvector.hxx.
|
inline |
Calls the passed member function of ObjType on every contained object, automatically skips all elements that are empty references.
Definition at line 92 of file refvector.hxx.
|
inline |
Calls the passed member function of ObjType on every contained object.
Passes the vector index as first argument to the member function.
Definition at line 108 of file refvector.hxx.
Referenced by oox::ole::VbaFormControl::convertProperties().
|
inline |
Calls the passed functor for every contained object.
Passes the index as first argument and the object reference as second argument to rFunctor.
Definition at line 100 of file refvector.hxx.
Referenced by oox::RefVector< AxisModel >::forEachMemWithIndex().
|
inline |
Returns a reference to the object with the passed index, or 0 on error.
Definition at line 51 of file refvector.hxx.
Referenced by oox::drawingml::chart::TypeGroupConverter::createCategorySequence(), oox::ole::VbaFormControl::finalizeEmbeddedControls(), and oox::drawingml::chart::TypeGroupConverter::getSingleSeriesTitle().
|
inlineprivate |
Definition at line 151 of file refvector.hxx.
Referenced by oox::RefVector< AxisModel >::get().