Aspose.Tasks for C++
Aspose::Tasks::PropertyContainer< T > Class Template Reference

Represents property container. More...

#include <PropertyContainer.h>

Inherits Aspose::Tasks::IContainer< K >.

Public Member Functions

template<typename TValue >
void CheckPropAndSet (const Key< TValue, T > &key, const TValue &val)
 Maps the specified property to the specified value in this container. If this container doesn't contain record ProjectItem it will be added. More...
 
template<typename TValue >
System::MakeConstRef_t< TValue > CheckPropAndGet (const Key< TValue, T > &key)
 Returns the value to which the property is mapped in this container. If this container doesn't contain record ProjectItem it will be added with default value and default value will be returned. More...
 

Detailed Description

template<typename T>
class Aspose::Tasks::PropertyContainer< T >

Represents property container.

Member Function Documentation

◆ CheckPropAndGet()

template<typename T >
template<typename TValue >
System::MakeConstRef_t<TValue> Aspose::Tasks::PropertyContainer< T >::CheckPropAndGet ( const Key< TValue, T > &  key)
inline

Returns the value to which the property is mapped in this container. If this container doesn't contain record ProjectItem it will be added with default value and default value will be returned.

Parameters
keythe specified property.
Returns
the value to which the property is mapped in this container or default value for property.

◆ CheckPropAndSet()

template<typename T >
template<typename TValue >
void Aspose::Tasks::PropertyContainer< T >::CheckPropAndSet ( const Key< TValue, T > &  key,
const TValue &  val 
)
inline

Maps the specified property to the specified value in this container. If this container doesn't contain record ProjectItem it will be added.

Parameters
keythe specified property.
valthe value.