e4ec80bc74555cb1b4ad6711988ba6f0bad02ef5
[occt.git] / src / TDataStd / TDataStd_NamedData.lxx
1 // Created on: 2007-08-20
2 // Created by: Sergey ZARITCHNY
3 // Copyright (c) 2007-2014 OPEN CASCADE SAS
4 //
5 // This file is part of Open CASCADE Technology software library.
6 //
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
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.
12 //
13 // Alternatively, this file may be used under the terms of Open CASCADE
14 // commercial license or contractual agreement.
15
16 //=======================================================================
17 //function : HasIntegers
18 //purpose  : Returns true if there are some named integers in the attribute.
19 //=======================================================================
20
21 inline 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 //=======================================================================
30 inline 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 //=======================================================================
39 inline 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 //=======================================================================
48 inline 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 //=======================================================================
58 inline 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 //=======================================================================
67 inline Standard_Boolean TDataStd_NamedData::HasArraysOfReals() const
68 {
69   return !myArraysOfReals.IsNull();
70 }
71