LibreOffice Module sc (master) 1
|
When assigning a string value, you can also assign an interned string whose life-cycle is managed by the pivot cache that it belongs to. More...
#include <dpitemdata.hxx>
Classes | |
struct | GroupValueAttr |
Public Types | |
enum | Type { GroupValue = 0 , RangeStart = 1 , Value = 2 , String = 3 , Error = 4 , Empty = 5 } |
Public Member Functions | |
ScDPItemData () | |
ScDPItemData (const ScDPItemData &r) | |
ScDPItemData (const OUString &rStr) | |
ScDPItemData (sal_Int32 nGroupType, sal_Int32 nValue) | |
~ScDPItemData () | |
Type | GetType () const |
void | SetEmpty () |
void | SetString (const OUString &rS) |
void | SetStringInterned (rtl_uString *pS) |
void | SetValue (double fVal) |
void | SetRangeStart (double fVal) |
void | SetRangeFirst () |
void | SetRangeLast () |
void | SetErrorStringInterned (rtl_uString *pS) |
bool | IsCaseInsEqual (const ScDPItemData &r) const |
bool | operator== (const ScDPItemData &r) const |
bool | operator< (const ScDPItemData &r) const |
ScDPItemData & | operator= (const ScDPItemData &r) |
bool | IsEmpty () const |
bool | IsValue () const |
OUString | GetString () const |
double | GetValue () const |
GroupValueAttr | GetGroupValue () const |
bool | HasStringData () const |
ScDPValue::Type | GetCellType () const |
Static Public Member Functions | |
static sal_Int32 | Compare (const ScDPItemData &rA, const ScDPItemData &rB) |
Static Public Attributes | |
static const sal_Int32 | DateFirst = -1 |
static const sal_Int32 | DateLast = 10000 |
Private Member Functions | |
void | DisposeString () |
Private Attributes | |
union { | |
rtl_uString * mpString | |
GroupValueAttr maGroupValue | |
double mfValue | |
}; | |
sal_uInt8 | meType:3 |
bool | mbStringInterned:1 |
Friends | |
class | ScDPCache |
When assigning a string value, you can also assign an interned string whose life-cycle is managed by the pivot cache that it belongs to.
Those methods that take a string pointer assume that the string is interned.
Do make sure that an item with an interned string won't persist after the pivot cache has been destroyed or reloaded.
Definition at line 28 of file dpitemdata.hxx.
enum ScDPItemData::Type |
Enumerator | |
---|---|
GroupValue | |
RangeStart | |
Value | |
String | |
Error | |
Empty |
Definition at line 33 of file dpitemdata.hxx.
ScDPItemData::ScDPItemData | ( | ) |
Definition at line 74 of file dpitemdata.cxx.
ScDPItemData::ScDPItemData | ( | const ScDPItemData & | r | ) |
Definition at line 77 of file dpitemdata.cxx.
References Empty, Error, GroupValue, maGroupValue, mbStringInterned, meType, meType, mfValue, ScDPItemData::GroupValueAttr::mnGroupType, ScDPItemData::GroupValueAttr::mnValue, mpString, RangeStart, String, and Value.
ScDPItemData::ScDPItemData | ( | const OUString & | rStr | ) |
ScDPItemData::ScDPItemData | ( | sal_Int32 | nGroupType, |
sal_Int32 | nValue | ||
) |
Definition at line 119 of file dpitemdata.cxx.
References maGroupValue, meType, ScDPItemData::GroupValueAttr::mnGroupType, ScDPItemData::GroupValueAttr::mnValue, and nValue.
ScDPItemData::~ScDPItemData | ( | ) |
Definition at line 126 of file dpitemdata.cxx.
References DisposeString().
|
static |
Definition at line 30 of file dpitemdata.cxx.
References CollatorWrapper::compareString(), Error, ScGlobal::GetCollator(), GetString(), GroupValue, maGroupValue, meType, mfValue, ScDPItemData::GroupValueAttr::mnGroupType, ScDPItemData::GroupValueAttr::mnValue, mpString, RangeStart, String, and Value.
Referenced by ScDPGroupTableData::Compare(), and operator<().
|
private |
Definition at line 102 of file dpitemdata.cxx.
References Error, mbStringInterned, meType, mpString, and String.
Referenced by operator=(), SetEmpty(), SetRangeFirst(), SetRangeLast(), SetRangeStart(), SetString(), SetStringInterned(), SetValue(), and ~ScDPItemData().
ScDPValue::Type ScDPItemData::GetCellType | ( | ) | const |
Definition at line 265 of file dpitemdata.cxx.
References ScDPValue::Empty, Empty, ScDPValue::Error, Error, meType, ScDPValue::String, ScDPValue::Value, and Value.
ScDPItemData::GroupValueAttr ScDPItemData::GetGroupValue | ( | ) | const |
Definition at line 355 of file dpitemdata.cxx.
References GroupValue, maGroupValue, meType, ScDPItemData::GroupValueAttr::mnGroupType, and ScDPItemData::GroupValueAttr::mnValue.
Referenced by ScDPCache::GetFormattedString().
OUString ScDPItemData::GetString | ( | ) | const |
Definition at line 327 of file dpitemdata.cxx.
References Empty, Error, GroupValue, maGroupValue, meType, mfValue, ScDPItemData::GroupValueAttr::mnValue, mpString, RangeStart, String, and Value.
Referenced by Compare(), ScDPResultMember::GetDisplayName(), ScDPCache::GetFormattedString(), IsCaseInsEqual(), ScDPResultVisibilityData::MemberHash::operator()(), operator==(), and ScDPCache::ValidQuery().
|
inline |
Definition at line 67 of file dpitemdata.hxx.
References meType.
Referenced by ScDPResultMember::FillMemberResults(), and ScDPCache::GetFormattedString().
double ScDPItemData::GetValue | ( | ) | const |
Definition at line 347 of file dpitemdata.cxx.
References meType, mfValue, RangeStart, and Value.
Referenced by ScDPResultMember::FillMemberResults(), ScDPMembers::getByIndex(), ScDPCache::GetFormattedString(), ScDPMember::IsNamedItem(), ScDPResultVisibilityData::MemberHash::operator()(), ScDPMembers::ScDPMembers(), and ScDPCache::ValidQuery().
bool ScDPItemData::HasStringData | ( | ) | const |
Definition at line 366 of file dpitemdata.cxx.
References Error, meType, and String.
Referenced by ScDPCache::ValidQuery().
bool ScDPItemData::IsCaseInsEqual | ( | const ScDPItemData & | r | ) | const |
Definition at line 187 of file dpitemdata.cxx.
References GetString(), ScGlobal::GetTransliteration(), GroupValue, utl::TransliterationWrapper::isEqual(), maGroupValue, meType, mfValue, ScDPItemData::GroupValueAttr::mnGroupType, ScDPItemData::GroupValueAttr::mnValue, mpString, RangeStart, and Value.
Referenced by ScDPGroupTableData::HasCommonElement(), and ScDPGroupTableData::IsInGroup().
bool ScDPItemData::IsEmpty | ( | ) | const |
Definition at line 317 of file dpitemdata.cxx.
Referenced by ScDPCache::ValidQuery().
bool ScDPItemData::IsValue | ( | ) | const |
Definition at line 322 of file dpitemdata.cxx.
Referenced by ScDPResultMember::FillMemberResults(), ScDPResultVisibilityData::MemberHash::operator()(), and ScDPCache::ValidQuery().
bool ScDPItemData::operator< | ( | const ScDPItemData & | r | ) | const |
Definition at line 232 of file dpitemdata.cxx.
References Compare().
ScDPItemData & ScDPItemData::operator= | ( | const ScDPItemData & | r | ) |
Definition at line 237 of file dpitemdata.cxx.
References DisposeString(), Empty, Error, GroupValue, maGroupValue, mbStringInterned, meType, mfValue, ScDPItemData::GroupValueAttr::mnGroupType, ScDPItemData::GroupValueAttr::mnValue, mpString, RangeStart, String, and Value.
bool ScDPItemData::operator== | ( | const ScDPItemData & | r | ) | const |
Definition at line 211 of file dpitemdata.cxx.
References GetString(), GroupValue, maGroupValue, meType, mfValue, ScDPItemData::GroupValueAttr::mnGroupType, ScDPItemData::GroupValueAttr::mnValue, RangeStart, and Value.
void ScDPItemData::SetEmpty | ( | ) |
Definition at line 131 of file dpitemdata.cxx.
References DisposeString(), Empty, and meType.
void ScDPItemData::SetErrorStringInterned | ( | rtl_uString * | pS | ) |
Definition at line 181 of file dpitemdata.cxx.
References Error, meType, pS, and SetStringInterned().
void ScDPItemData::SetRangeFirst | ( | ) |
Definition at line 167 of file dpitemdata.cxx.
References DisposeString(), meType, mfValue, and RangeStart.
Referenced by ScDPSaveNumGroupDimension::AddToCache().
void ScDPItemData::SetRangeLast | ( | ) |
Definition at line 174 of file dpitemdata.cxx.
References DisposeString(), meType, mfValue, and RangeStart.
Referenced by ScDPSaveNumGroupDimension::AddToCache().
void ScDPItemData::SetRangeStart | ( | double | fVal | ) |
Definition at line 160 of file dpitemdata.cxx.
References DisposeString(), meType, mfValue, and RangeStart.
Referenced by ScDPSaveNumGroupDimension::AddToCache(), and ScDPGroupTableData::FillGroupValues().
void ScDPItemData::SetString | ( | const OUString & | rS | ) |
Definition at line 137 of file dpitemdata.cxx.
References DisposeString(), meType, mpString, and String.
void ScDPItemData::SetStringInterned | ( | rtl_uString * | pS | ) |
Definition at line 145 of file dpitemdata.cxx.
References DisposeString(), mbStringInterned, meType, mpString, pS, and String.
Referenced by SetErrorStringInterned().
void ScDPItemData::SetValue | ( | double | fVal | ) |
Definition at line 153 of file dpitemdata.cxx.
References DisposeString(), meType, mfValue, and Value.
Referenced by ScDPObject::GetFormattedString().
|
friend |
Definition at line 30 of file dpitemdata.hxx.
union { ... } ScDPItemData::@27 |
|
static |
Definition at line 35 of file dpitemdata.hxx.
Referenced by ScDPUtil::getDateGroupName(), and ScDPUtil::getDatePartValue().
|
static |
Definition at line 36 of file dpitemdata.hxx.
Referenced by ScDPUtil::getDateGroupName(), and ScDPUtil::getDatePartValue().
GroupValueAttr ScDPItemData::maGroupValue |
Definition at line 48 of file dpitemdata.hxx.
Referenced by Compare(), GetGroupValue(), GetString(), IsCaseInsEqual(), operator=(), operator==(), and ScDPItemData().
|
private |
Definition at line 53 of file dpitemdata.hxx.
Referenced by DisposeString(), operator=(), ScDPItemData(), and SetStringInterned().
|
private |
Definition at line 52 of file dpitemdata.hxx.
Referenced by Compare(), DisposeString(), GetCellType(), GetGroupValue(), GetString(), GetValue(), HasStringData(), IsCaseInsEqual(), IsEmpty(), IsValue(), operator=(), operator==(), ScDPItemData(), SetEmpty(), SetErrorStringInterned(), SetRangeFirst(), SetRangeLast(), SetRangeStart(), SetString(), SetStringInterned(), and SetValue().
double ScDPItemData::mfValue |
Definition at line 49 of file dpitemdata.hxx.
Referenced by Compare(), GetString(), GetValue(), IsCaseInsEqual(), operator=(), operator==(), ScDPItemData(), SetRangeFirst(), SetRangeLast(), SetRangeStart(), and SetValue().
rtl_uString* ScDPItemData::mpString |
Definition at line 47 of file dpitemdata.hxx.
Referenced by Compare(), DisposeString(), GetString(), IsCaseInsEqual(), operator=(), ScDPItemData(), SetString(), and SetStringInterned().