LLVM  4.0.0
Public Member Functions | List of all members
llvm::object::Archive::Child Class Reference

#include <Archive.h>

Public Member Functions

 Child (const Archive *Parent, const char *Start, Error *Err)
 
 Child (const Archive *Parent, StringRef Data, uint16_t StartOfFile)
 
bool operator== (const Child &other) const
 
const ArchivegetParent () const
 
Expected< ChildgetNext () const
 
Expected< StringRefgetName () const
 
Expected< std::string > getFullName () const
 
Expected< StringRefgetRawName () const
 
Expected< sys::TimePoint
< std::chrono::seconds > > 
getLastModified () const
 
StringRef getRawLastModified () const
 
Expected< unsignedgetUID () const
 
Expected< unsignedgetGID () const
 
Expected< sys::fs::permsgetAccessMode () const
 
Expected< uint64_t > getSize () const
 
Expected< uint64_t > getRawSize () const
 
Expected< StringRefgetBuffer () const
 
uint64_t getChildOffset () const
 
Expected< MemoryBufferRefgetMemoryBufferRef () const
 
Expected< std::unique_ptr
< Binary > > 
getAsBinary (LLVMContext *Context=nullptr) const
 

Detailed Description

Definition at line 79 of file Archive.h.

Constructor & Destructor Documentation

Archive::Child::Child ( const Archive Parent,
const char *  Start,
Error Err 
)
Archive::Child::Child ( const Archive Parent,
StringRef  Data,
uint16_t  StartOfFile 
)

Definition at line 301 of file Archive.cpp.

Member Function Documentation

Expected<sys::fs::perms> llvm::object::Archive::Child::getAccessMode ( ) const
inline
Expected< std::unique_ptr< Binary > > Archive::Child::getAsBinary ( LLVMContext Context = nullptr) const
Expected< StringRef > Archive::Child::getBuffer ( ) const
uint64_t Archive::Child::getChildOffset ( ) const

Definition at line 468 of file Archive.cpp.

References llvm::object::Binary::Data.

Expected< std::string > Archive::Child::getFullName ( ) const
Expected<unsigned> llvm::object::Archive::Child::getGID ( ) const
inline
Expected<sys::TimePoint<std::chrono::seconds> > llvm::object::Archive::Child::getLastModified ( ) const
inline
Expected< MemoryBufferRef > Archive::Child::getMemoryBufferRef ( ) const
Expected< StringRef > Archive::Child::getName ( ) const
Expected< Archive::Child > Archive::Child::getNext ( ) const
const Archive* llvm::object::Archive::Child::getParent ( ) const
inline

Definition at line 100 of file Archive.h.

Referenced by llvm::object::Archive::child_iterator::operator++().

StringRef llvm::object::Archive::Child::getRawLastModified ( ) const
inline
Expected<StringRef> llvm::object::Archive::Child::getRawName ( ) const
inline

Definition at line 105 of file Archive.h.

References llvm::object::ArchiveMemberHeader::getRawName().

Referenced by llvm::object::Archive::Archive(), and Child().

Expected< uint64_t > Archive::Child::getRawSize ( ) const
Returns
the size in the archive header for this member.

Definition at line 384 of file Archive.cpp.

Referenced by Child().

Expected< uint64_t > Archive::Child::getSize ( ) const
Returns
the size of the archive member without the header or padding.

Definition at line 374 of file Archive.cpp.

References llvm::object::Binary::Data, llvm::Expected< T >::get(), and llvm::Expected< T >::takeError().

Expected<unsigned> llvm::object::Archive::Child::getUID ( ) const
inline
bool llvm::object::Archive::Child::operator== ( const Child other) const
inline

Definition at line 95 of file Archive.h.

References assert(), and llvm::StringRef::begin().


The documentation for this class was generated from the following files: