0024947: Redesign OCCT legacy type system
[occt.git] / src / TDataStd / TDataStd_NamedData.lxx
CommitLineData
b311480e 1// Created on: 2007-08-20
2// Created by: Sergey ZARITCHNY
973c2be1 3// Copyright (c) 2007-2014 OPEN CASCADE SAS
b311480e 4//
973c2be1 5// This file is part of Open CASCADE Technology software library.
b311480e 6//
d5f74e42 7// This library is free software; you can redistribute it and/or modify it under
8// the terms of the GNU Lesser General Public License version 2.1 as published
973c2be1 9// by the Free Software Foundation, with special exception defined in the file
10// OCCT_LGPL_EXCEPTION.txt. Consult the file LICENSE_LGPL_21.txt included in OCCT
11// distribution for complete text of the license and disclaimer of any warranty.
b311480e 12//
973c2be1 13// Alternatively, this file may be used under the terms of Open CASCADE
14// commercial license or contractual agreement.
7fd59977 15
16//=======================================================================
17//function : HasIntegers
18//purpose : Returns true if there are some named integers in the attribute.
19//=======================================================================
20
21inline Standard_Boolean TDataStd_NamedData::HasIntegers() const
22{
23 return !myIntegers.IsNull();
24}
25
26//=======================================================================
27//function : HasReals
28//purpose : Returns true if there are some named reals in the attribute.
29//=======================================================================
30inline Standard_Boolean TDataStd_NamedData::HasReals() const
31{
32 return !myReals.IsNull();
33}
34
35//=======================================================================
36//function : HasStrings
37//purpose : Returns true if there are some named strings in the attribute.
38//=======================================================================
39inline Standard_Boolean TDataStd_NamedData::HasStrings() const
40{
41 return !myStrings.IsNull();
42}
43
44//=======================================================================
45//function : HasBytes
46//purpose : Returns true if there are some named bytes in the attribute.
47//=======================================================================
48inline Standard_Boolean TDataStd_NamedData::HasBytes() const
49{
50 return !myBytes.IsNull();
51}
52
53//=======================================================================
54//function : HasArraysOfIntegers
55//purpose : Returns true if there are at least one array of integer
56// : values in the internal container of the attribute.
57//=======================================================================
58inline Standard_Boolean TDataStd_NamedData::HasArraysOfIntegers() const
59{
60 return !myArraysOfIntegers.IsNull();
61}
62//=======================================================================
63//function : HasArraysOfReals
64//purpose : Returns true if there are some named arrays of real values
65// : in the attribute.
66//=======================================================================
67inline Standard_Boolean TDataStd_NamedData::HasArraysOfReals() const
68{
69 return !myArraysOfReals.IsNull();
70}
71