ROSE 0.11.145.147
SgAsmPEExportDirectory.h
1
2#ifndef ROSE_SgAsmPEExportDirectory_H
3#define ROSE_SgAsmPEExportDirectory_H
4#include <RoseFirst.h>
5#include <Cxx_GrammarDeclarations.h>
6#include <SgAsmExecutableFileFormat.h>
7
8
9
10/* #line 1 "/workspace/src/ROSETTA/Grammar/grammarClassDeclarationMacros.macro" */
11
12// WARNING -- GENERATED CODE -- DO NOT MODIFY THIS CODE -- WARNING!
13// This code is automatically generated for each
14// terminal and non-terminal within the defined
15// grammar. There is a simple way to change the
16// code to fix bugs etc. See the ROSE README file
17// for directions.
18
19// tps: (02/22/2010): Adding DLL export requirements
20#include "rosedll.h"
21
22// predeclarations for SgAsmPEExportDirectory
23
24/* #line 25 "../../../src/frontend/SageIII//SgAsmPEExportDirectory.h" */
25/* #line 5088 "/workspace/src/ROSETTA/src/binaryInstruction.C" */
26
27#include <Rose/BinaryAnalysis/RelativeVirtualAddress.h>
28
29#ifdef ROSE_SgAsmPEExportDirectory_IMPL
30#include <SgAsmGenericString.h>
31#endif
32
33
34/* #line 13 "/workspace/src/ROSETTA/Grammar/grammarClassDeclarationMacros.macro after subst for $PREDECLARATIONS" */
35
36/* #line 14 "/workspace/src/ROSETTA/Grammar/grammarClassDeclarationMacros.macro" */
37
38#if !defined(DOCUMENTATION)
39// Class Definition for SgAsmPEExportDirectory
40class ROSE_DLL_API SgAsmPEExportDirectory : public SgAsmExecutableFileFormat
41 {
42 public:
43
44
45/* #line 46 "../../../src/frontend/SageIII//SgAsmPEExportDirectory.h" */
46
47 virtual SgNode* copy ( SgCopyHelp& help) const override;
48// Start of memberFunctionString
49/* #line 5174 "/workspace/src/ROSETTA/src/binaryInstruction.C" */
50
51
52 //----------------------- Boost serialization for SgAsmPEExportDirectory -----------------------
53#ifdef ROSE_HAVE_BOOST_SERIALIZATION_LIB
54private:
55 friend class boost::serialization::access;
56
57 template<class S>
58 void serialize(S &s, const unsigned /*version*/) {
59 debugSerializationBegin("SgAsmPEExportDirectory");
60 s & BOOST_SERIALIZATION_BASE_OBJECT_NVP(SgAsmExecutableFileFormat);
61 s & BOOST_SERIALIZATION_NVP(p_res1);
62 s & BOOST_SERIALIZATION_NVP(p_timestamp);
63 s & BOOST_SERIALIZATION_NVP(p_vmajor);
64 s & BOOST_SERIALIZATION_NVP(p_vminor);
65 s & BOOST_SERIALIZATION_NVP(p_name_rva);
66 s & BOOST_SERIALIZATION_NVP(p_ord_base);
67 s & BOOST_SERIALIZATION_NVP(p_expaddr_n);
68 s & BOOST_SERIALIZATION_NVP(p_nameptr_n);
69 s & BOOST_SERIALIZATION_NVP(p_expaddr_rva);
70 s & BOOST_SERIALIZATION_NVP(p_nameptr_rva);
71 s & BOOST_SERIALIZATION_NVP(p_ordinals_rva);
72 s & BOOST_SERIALIZATION_NVP(p_name);
73 debugSerializationEnd("SgAsmPEExportDirectory");
74 }
75#endif // ROSE_HAVE_BOOST_SERIALIZATION_LIB
77 // Local types
79public:
80#ifdef _MSC_VER
81# pragma pack (1)
82#endif
83 /* An Export Section begins with the Export Directory */
84 struct PEExportDirectory_disk {
85 uint32_t res1; /* 0x00 Reserved, must be zero */
86 uint32_t timestamp; /* 0x04 Time that export data was created */
87 uint16_t vmajor; /* 0x08 Major version number (user defined) */
88 uint16_t vminor; /* 0x0a Minor version number (user defined) */
89 uint32_t name_rva; /* 0x0c Location of name of DLL */
90 uint32_t ord_base; /* 0x10 Starting ordinal for exports in this image (usually 1) */
91 uint32_t expaddr_n; /* 0x14 Number of entries in the export address table */
92 uint32_t nameptr_n; /* 0x18 Number of entries in the name pointer table and ordinal table */
93 uint32_t expaddr_rva; /* 0x1c Location of Export Address Table */
94 uint32_t nameptr_rva; /* 0x20 Location of Export Name Pointer Table */
95 uint32_t ordinals_rva; /* 0x24 Location of Ordinal Table */
96 } /* 0x28 */
97#if !defined(SWIG) && !defined(_MSC_VER)
98 __attribute__((packed))
99#endif
100 ;
101#ifdef _MSC_VER
102# pragma pack ()
103#endif
104
106 // Properties
108public:
109public:
115 unsigned const& get_res1() const;
116 void set_res1(unsigned const&);
119public:
125 time_t const& get_timestamp() const;
126 void set_timestamp(time_t const&);
129public:
135 unsigned const& get_vmajor() const;
136 void set_vmajor(unsigned const&);
139public:
145 unsigned const& get_vminor() const;
146 void set_vminor(unsigned const&);
149public:
155 Rose::BinaryAnalysis::RelativeVirtualAddress const& get_name_rva() const;
157 void set_name_rva(Rose::BinaryAnalysis::RelativeVirtualAddress const&);
160public:
166 unsigned const& get_ord_base() const;
167 void set_ord_base(unsigned const&);
170public:
176 size_t const& get_expaddr_n() const;
177 void set_expaddr_n(size_t const&);
180public:
186 size_t const& get_nameptr_n() const;
187 void set_nameptr_n(size_t const&);
190public:
196 Rose::BinaryAnalysis::RelativeVirtualAddress const& get_expaddr_rva() const;
198 void set_expaddr_rva(Rose::BinaryAnalysis::RelativeVirtualAddress const&);
201public:
207 Rose::BinaryAnalysis::RelativeVirtualAddress const& get_nameptr_rva() const;
209 void set_nameptr_rva(Rose::BinaryAnalysis::RelativeVirtualAddress const&);
212public:
218 Rose::BinaryAnalysis::RelativeVirtualAddress const& get_ordinals_rva() const;
220 void set_ordinals_rva(Rose::BinaryAnalysis::RelativeVirtualAddress const&);
223public:
229 SgAsmGenericString* const& get_name() const;
230 void set_name(SgAsmGenericString* const&);
233 // Functions
235public:
237 void dump(FILE *f, const char *prefix, ssize_t idx) const;
238public:
240 virtual ~SgAsmPEExportDirectory();
241
242public:
245
246protected:
254
255
256// End of memberFunctionString
257// Start of memberFunctionString
258/* #line 1 "/workspace/src/ROSETTA/Grammar/Common.code" */
259
260// *** COMMON CODE SECTION BEGINS HERE ***
261
262 public:
263
264 // DQ (3/25/3006): I put this back in because it had the logic for where the copy function required
265 // and not required which is required to match the other aspects of the copy mechanism code generation.
266 // Specifically it is a problem to declare the copy function everywhere because it is not implemented
267 // for the SgSymbol IR nodes. I'm not clear why it is not implemented for these IR nodes.
268 /* \brief Copies AST (whole subtree, depending on the SgCopyHelp class */
269 // virtual SgNode* copy ( const SgCopyHelp & help) const;
270
272 virtual std::string class_name() const override;
273
275 virtual VariantT variantT() const override; // MS: new variant used in tree traversal
276
278 // King84 (2010.08.16): Moved this to an enum to save space, since it's only used at compiler-time anyway.
279 // static const VariantT static_variant = V_SgAsmPEExportDirectory;
280 enum { static_variant = V_SgAsmPEExportDirectory };
281
282 /* the generated cast function */
284 ROSE_DLL_API friend SgAsmPEExportDirectory* isSgAsmPEExportDirectory( SgNode * s );
285
287 ROSE_DLL_API friend const SgAsmPEExportDirectory* isSgAsmPEExportDirectory( const SgNode * s );
288
289 // ******************************************
290 // * Memory Pool / New / Delete
291 // ******************************************
292
293 public:
295 static const unsigned pool_size; //
297 static std::vector<unsigned char *> pools; //
299 static SgAsmPEExportDirectory * next_node; //
300
302 static unsigned long initializeStorageClassArray(SgAsmPEExportDirectoryStorageClass *); //
303
305 static void clearMemoryPool(); //
306 static void deleteMemoryPool(); //
307
309 static void extendMemoryPoolForFileIO(); //
310
312 static SgAsmPEExportDirectory * getPointerFromGlobalIndex(unsigned long); //
314 static SgAsmPEExportDirectory * getPointerFromGlobalIndex(AstSpecificDataManagingClass *, unsigned long); //
315
317 static unsigned long getNumberOfValidNodesAndSetGlobalIndexInFreepointer(unsigned long); //
319 static void resetValidFreepointers(); //
321 static unsigned long getNumberOfLastValidPointer(); //
322
323
324#if defined(INLINE_FUNCTIONS)
326 inline void *operator new (size_t size);
327#else
329 void *operator new (size_t size);
330#endif
332 void operator delete (void* pointer, size_t size);
333
334 // DQ (4/5/2007): This is not the correct operator that we want, but appears to be required to compile ROSE with ROSE.
335 void operator delete (void* pointer)
336 {
337 // This is the generated delete operator...
338 SgAsmPEExportDirectory::operator delete (pointer,sizeof(SgAsmPEExportDirectory));
339 }
340
342 static size_t numberOfNodes();
343
345 static size_t memoryUsage();
346
347 // End of scope which started in IR nodes specific code
348 /* */
349
350 /* name Internal Functions
351 \brief Internal functions ... incomplete-documentation
352
353 These functions have been made public as part of the design, but they are suggested for internal use
354 or by particularly knowledgeable users for specialized tools or applications.
355
356 \internal We could not make these private because they are required by user for special purposes. And
357 it would be unwieldy to have many of the internal classes in ROSE be explicitly defined as friends.
358
359 */
360
361 // MS: 02/12/02 container of pointers to AST successor nodes used in the traversal
362 // overridden in every class by *generated* implementation
364 virtual std::vector<SgNode*> get_traversalSuccessorContainer() override;
365 // MS: 06/28/02 container of names of variables or container indices
366 // used used in the traversal to access AST successor nodes
367 // overridden in every class by *generated* implementation
370 virtual std::vector<std::string> get_traversalSuccessorNamesContainer() override;
371
372 // GB (09/25/2007): Functions for index-based access to traversal successors; these are hopefully a lot faster
373 // than all the vector copies. The implementation for these functions is generated for each class.
375 virtual size_t get_numberOfTraversalSuccessors() override;
377 virtual SgNode *get_traversalSuccessorByIndex(size_t idx) override;
379 virtual size_t get_childIndex(SgNode *child) override;
380
381#ifndef ROSE_USE_INTERNAL_FRONTEND_DEVELOPMENT
382 // MS: 08/16/2002 method for generating RTI information
384 virtual RTIReturnType roseRTI() override;
385#endif
386 /* */
387
388
389
390 /* name Deprecated Functions
391 \brief Deprecated functions ... incomplete-documentation
392
393 These functions have been deprecated from use.
394 */
395 /* */
396
398 virtual const char* sage_class_name() const override ROSE_DEPRECATED_FUNCTION;
399
400 // JJW (10/16/2008): Changed to a single function in Node.code, and put
401 // getVariant() in #if 0 block to prevent confusing Doxygen
402#if 0
404 virtual int variant() const ROSE_DEPRECATED_FUNCTION;
406 // virtual int getVariant() const ROSE_DEPRECATED_FUNCTION;
407#endif
408 /* */
409
410
411
412
413 public:
414 /* name Traversal Support Functions
415 \brief Traversal support functions ... incomplete-documentation
416
417 These functions have been made public as part of the design, but they are suggested for internal use
418 or by particularly knowledgable users for specialized tools or applications.
419 */
420 /* */
421
422 // DQ (11/26/2005): Support for visitor pattern mechanims
423 // (inferior to ROSE traversal mechanism, experimental).
427
428 /* DXN (08/09/2010): support for the classic visitor pattern done in GoF */
430 virtual void accept (ROSE_VisitorPattern & visitor) override;
431
432 // DQ (12/26/2005): Support for traversal based on the memory pool
435 static void traverseMemoryPoolNodes(ROSE_VisitTraversal & visit);
436
440
441 // DQ (2/9/2006): Added to support traversal over single representative of each IR node
442 // This traversal helps support internal tools that call static member functions.
443 // note: this function operates on the memory pools.
446 static void visitRepresentativeNode (ROSE_VisitTraversal & visit);
447 /* */
448
449 public:
450 /* NodeId support functions */
452 static SgNode* getNodeByNodeId(VariantT variantT, size_t poolIdx, size_t itemIdx);
455 static SgAsmPEExportDirectory* getNodeByNodeIdInternal(size_t poolIdx, size_t itemIdx);
458 static std::string getNodeIdString(SgAsmPEExportDirectory* sgnode);
459 static std::string getNodeIdStringInternal(SgAsmPEExportDirectory* sgnode);
460
461 public:
462 /* name Memory Allocation Functions
463 \brief Memory allocations functions ... incomplete-documentation
464
465 These functions have been made public as part of the design, but they are suggested for internal use
466 or by particularly knowledgable users for specialized tools or applications.
467 */
468 /* */
469
480 virtual bool isInMemoryPool() override;
481
492 virtual void checkDataMemberPointersIfInMemoryPool() override;
493
494 // DQ (4/30/2006): Modified to be a const function.
509 virtual std::vector<std::pair<SgNode*,std::string> > returnDataMemberPointers() const override;
510
521
533 virtual long getChildIndex( SgNode* childNode ) const override;
534
535 // DQ (9/2/2015): Since this function is generated by ROSETTA, we can't define the
536 // comment here (changed to be a C style comment and not be a doxygen comment).
537 /* \brief Constructor for use by AST File I/O Mechanism
538
539 This constructor permits the IR node to be rebuilt from the contiguously arranged data in memory
540 which obtained via fast binary file I/O from disk.
541 */
542 // SgAsmPEExportDirectory( SgAsmPEExportDirectoryStorageClass& source );
543
544
545
546
547
548 // JH (10/24/2005): methods added to support the ast file IO
549 private:
550
551 /* name AST Memory Allocation Support Functions
552 \brief Memory allocations support....
553
554 These functions handle the low leve support of the memory allocation scheme which permits IR nodes to be allocated
555 in large contiguous blocks to reduce memory fragmentation, improve performance, support specialized access (AST traversals),
556 and support the AST File I/O Mechanism.
557 */
558 /* */
559
560 /* JH (10/24/2005): Two typedefs. The TestType notes the type every pointer is cast to before
561 we compare them. Since I had several problems with this, I decided to make a typdef to ensure
562 that I use the same type everywhere, if any changes are made. THe second one declares the type
563 (actually unsigned long) where teh pointer address gets converted to. On 64 bit platforms this
564 might got changed, but unfortunatly, the return types are still unsigned longs. There exists
565 a correspinding one in the AST_FILE_IO class!
566 */
567 // DQ (9/2/2015): This typedef is no longer used, we can't define the
568 // comment here (changed to be a C style comment and not be a doxygen comment).
569 /* \brief Typedef used for low level memory access.
570 */
571 // typedef unsigned char* TestType;
572
573 // DQ (9/2/2015): This typedef is no longer used, we can't define the
574 // comment here (changed to be a C style comment and not be a doxygen comment).
575 /* \brief Typedef used to hold memory addresses as values.
576 */
577 // typedef unsigned long AddressType;
578
579
580
581 // necessary, to have direct access to the p_freepointer and the private methods !
583 friend class AST_FILE_IO;
584
586 friend class SgAsmPEExportDirectoryStorageClass;
587
589 friend class AstSpecificDataManagingClass;
590
592 friend class AstSpecificDataManagingClassStorageClass;
593 public:
595 SgAsmPEExportDirectory( const SgAsmPEExportDirectoryStorageClass& source );
596
597 // private: // JJW hack
598 /*
599 name AST Memory Allocation Support Variables
600 Memory allocations support variables
601
602 These variables handle the low level support of the memory allocation scheme which permits IR nodes to be allocated
603 in large contiguous blocks to reduce memory fragmentation, improve performance, support specialized access (AST traversals),
604 and support the AST File I/O Mechanism.
605 */
606 /* */
607
608 public:
609
610 // DQ (11/21/2009): Added function to add new Regular Expression attributes and return pointer
611 // to current node (so that it will work cleanly with build functions to specify patterns).
612 // virtual SgNode* addRegExpAttribute();
619
620#ifndef _MSC_VER
621// Rasmussen (04/17/2019): Support for ATerms has been deprecated as it is no longer needed
622// and likely never fully implemented nor tested. Files remain in the src tree but are no
623// longer built.
624#define BUILD_ATERM_SUPPORT 0
625 #if BUILD_ATERM_SUPPORT
626 #ifdef ROSE_USE_ROSE_ATERM_SUPPORT
627 // DQ (10/4/2014): Adding ATerm support to ROSE.
637 // Rasmussen (1/7/2019): Added override to kill warning messages of overridden virtual function
638 virtual ATerm generate_ATerm() override;
639
641 virtual void generate_ATerm_Annotation(ATerm & term) override;
642 #endif
643 #endif // BUILD_ATERM_SUPPORT
644#endif
645 // These can't be virtual functions since we don't yet know what IR node to build (until we have read the aterm).
646 // virtual generate_AST(ATerm & term);
647 // virtual void read_ATerm_Annotation(ATerm & term);
648
649// *** COMMON CODE SECTION ENDS HERE ***
650
651
652// End of memberFunctionString
653// Start of memberFunctionString
654/* #line 706 "/workspace/src/ROSETTA/Grammar/Node.code" */
655
656 // the generated cast function
657 // friend ROSE_DLL_API SgAsmPEExportDirectory* isSgAsmPEExportDirectory ( SgNode* s );
658
659 typedef SgAsmExecutableFileFormat base_node_type;
660
661
662// End of memberFunctionString
663
664
665
666
667
668
669
670
671
672
673
674
675
676 protected:
677// Start of memberFunctionString
678unsigned p_res1;
679
680// End of memberFunctionString
681// Start of memberFunctionString
682time_t p_timestamp;
683
684// End of memberFunctionString
685// Start of memberFunctionString
686unsigned p_vmajor;
687
688// End of memberFunctionString
689// Start of memberFunctionString
690unsigned p_vminor;
691
692// End of memberFunctionString
693// Start of memberFunctionString
695
696// End of memberFunctionString
697// Start of memberFunctionString
698unsigned p_ord_base;
699
700// End of memberFunctionString
701// Start of memberFunctionString
702size_t p_expaddr_n;
703
704// End of memberFunctionString
705// Start of memberFunctionString
706size_t p_nameptr_n;
707
708// End of memberFunctionString
709// Start of memberFunctionString
711
712// End of memberFunctionString
713// Start of memberFunctionString
715
716// End of memberFunctionString
717// Start of memberFunctionString
719
720// End of memberFunctionString
721// Start of memberFunctionString
722SgAsmGenericString* p_name;
723
724// End of memberFunctionString
725
727 friend struct Rose::Traits::generated::describe_field_t<SgAsmPEExportDirectory, unsigned,&SgAsmPEExportDirectory::p_res1>;
728 friend struct Rose::Traits::generated::describe_field_t<SgAsmPEExportDirectory, time_t,&SgAsmPEExportDirectory::p_timestamp>;
729 friend struct Rose::Traits::generated::describe_field_t<SgAsmPEExportDirectory, unsigned,&SgAsmPEExportDirectory::p_vmajor>;
730 friend struct Rose::Traits::generated::describe_field_t<SgAsmPEExportDirectory, unsigned,&SgAsmPEExportDirectory::p_vminor>;
731 friend struct Rose::Traits::generated::describe_field_t<SgAsmPEExportDirectory, Rose::BinaryAnalysis::RelativeVirtualAddress,&SgAsmPEExportDirectory::p_name_rva>;
732 friend struct Rose::Traits::generated::describe_field_t<SgAsmPEExportDirectory, unsigned,&SgAsmPEExportDirectory::p_ord_base>;
733 friend struct Rose::Traits::generated::describe_field_t<SgAsmPEExportDirectory, size_t,&SgAsmPEExportDirectory::p_expaddr_n>;
734 friend struct Rose::Traits::generated::describe_field_t<SgAsmPEExportDirectory, size_t,&SgAsmPEExportDirectory::p_nameptr_n>;
735 friend struct Rose::Traits::generated::describe_field_t<SgAsmPEExportDirectory, Rose::BinaryAnalysis::RelativeVirtualAddress,&SgAsmPEExportDirectory::p_expaddr_rva>;
736 friend struct Rose::Traits::generated::describe_field_t<SgAsmPEExportDirectory, Rose::BinaryAnalysis::RelativeVirtualAddress,&SgAsmPEExportDirectory::p_nameptr_rva>;
737 friend struct Rose::Traits::generated::describe_field_t<SgAsmPEExportDirectory, Rose::BinaryAnalysis::RelativeVirtualAddress,&SgAsmPEExportDirectory::p_ordinals_rva>;
738 friend struct Rose::Traits::generated::describe_field_t<SgAsmPEExportDirectory, SgAsmGenericString*,&SgAsmPEExportDirectory::p_name>;
739
740/* #line 21 "/workspace/src/ROSETTA/Grammar/grammarClassDeclarationMacros.macro" */
741
742
743 };
744#endif
745
746// postdeclarations for SgAsmPEExportDirectory
747
748/* #line 749 "../../../src/frontend/SageIII//SgAsmPEExportDirectory.h" */
749
750/* #line 27 "/workspace/src/ROSETTA/Grammar/grammarClassDeclarationMacros.macro after subst for $POSTDECLARATIONS" */
751
752/* #line 28 "/workspace/src/ROSETTA/Grammar/grammarClassDeclarationMacros.macro" */
753
754
755/* #line 756 "../../../src/frontend/SageIII//SgAsmPEExportDirectory.h" */
756
757#endif // ROSE_SgAsmPEExportDirectory_H
758
Class holding static data and functions supporting File I/O.
Definition AST_FILE_IO.h:19
Attribute containing a regex expression as a string.
Optionally bound relative virtual address.
Base class for many binary analysis nodes.
void initializeProperties()
Initialize all properties that have explicit initial values.
Base class for strings related to binary specimens.
Export file section.
Supporting class from copy mechanism within ROSE.
Definition sageCopy.h:26
This class represents the base class for all IR nodes within Sage III.
virtual size_t get_numberOfTraversalSuccessors()
return number of children in the traversal successor list
virtual RTIReturnType roseRTI()
return C++ Runtime-Time-Information
virtual std::vector< std::string > get_traversalSuccessorNamesContainer()
container of names of variables or container indices used used in the traversal to access AST success...
virtual void debugSerializationEnd(const char *className)
Called by generated serializers.
static std::string getNodeIdString(SgNode *sgnode)
compute the NodeId for a particular SgNode*.
virtual bool isInMemoryPool()
FOR INTERNAL USE This is used in internal tests to verify that all IR nodes are allocated from the he...
int variant() const
Older version function returns enum value "NODE".
virtual void processDataMemberReferenceToPointers(ReferenceToPointerHandler *)
FOR INTERNAL USE Processes pairs of references to SgNode* and strings for use in AST tools
virtual VariantT variantT() const
returns new style SageIII enum values
virtual long getChildIndex(SgNode *childNode) const
FOR INTERNAL USE Returns a unique index value for the childNode in the list of children at this IR no...
virtual size_t get_childIndex(SgNode *child)
index-based access to traversal successors by child node
virtual void debugSerializationBegin(const char *className)
Called by generated serializers.
virtual std::vector< SgNode * > get_traversalSuccessorContainer()
container of pointers to AST successor nodes used in the traversal overridden in every class by gener...
virtual std::string class_name() const
returns a string representing the class name
static void visitRepresentativeNode(ROSE_VisitTraversal &visit)
FOR INTERNAL USE Support for type-based traversal.
virtual void checkDataMemberPointersIfInMemoryPool()
FOR INTERNAL USE This is used in internal tests to verify that all IR nodes are allocated from the he...
static size_t numberOfNodes()
Returns the total number of IR nodes of this type.
virtual void accept(ROSE_VisitorPattern &visitor)
support for the classic visitor pattern done in GoF
virtual SgNode * get_traversalSuccessorByIndex(size_t idx)
index-based access to traversal successors by index number
static void traverseMemoryPoolVisitorPattern(ROSE_VisitorPattern &visitor)
FOR INTERNAL USE Support for visitor pattern.
void executeVisitorMemberFunction(ROSE_VisitorPattern &visitor)
FOR INTERNAL USE Support for visitor pattern.
static SgNode * getNodeByNodeId(VariantT variantT, size_t poolIdx, size_t itemIdx)
Find a node by its variant type, pool index, and item index.
static size_t memoryUsage()
Returns the size in bytes of the total memory allocated for all IR nodes of this type.
static void traverseMemoryPoolNodes(ROSE_VisitTraversal &visit)
FOR INTERNAL USE Support for visitor pattern over all IR nodes by type of IR node.
virtual const char * sage_class_name() const
generates string representing the class name: (e.g. for SgNode returns "SgNode").
virtual std::vector< std::pair< SgNode *, std::string > > returnDataMemberPointers() const
FOR INTERNAL USE Returns STL vector of pairs of SgNode* and strings for use in AST tools
static SgNode * getNodeByNodeIdInternal(size_t poolIdx, size_t itemIdx)
FOR INTERNAL USE Find an SgNode from its memory pool and location therin.
SgNode * addRegExpAttribute(std::string s, AstRegExAttribute *a)
Support for AST matching using regular expression.
void serialize(std::ostream &output, Graph &graph)
Serialize a graph into a stream of bytes.
The ROSE library.
ROSE_DLL_API int set_name(SgInitializedName *initializedNameNode, SgName new_name)
set_name of symbol in symbol table.
std::string get_name(const SgNode *node)
Generate a useful name to describe the SgNode.
void copy(const Word *src, const BitRange &srcRange, Word *dst, const BitRange &dstRange)
Copy some bits.