Inherits Aspose::Pdf::BaseOperatorCollection.
Public Member Functions | |
virtual bool | get_IsReadOnly () const |
Gets a value indicating whether the collection is read-only. More... | |
virtual int32_t | get_Count () const |
Gets count of operators in the collection. More... | |
virtual bool | get_IsFastTextExtractionMode () const |
Indicates wheather collection is limited to fast text extraction More... | |
virtual void | CopyTo (System::ArrayPtr< System::SharedPtr< Operator >> array, int32_t index) |
Copies operators into operators list. More... | |
virtual System::SharedPtr< System::Collections::Generic::IEnumerator< System::SharedPtr< Operator > > > | GetEnumerator () |
Returns enumerator for collection More... | |
void | Accept (System::SharedPtr< IOperatorSelector > visitor) |
Accepts IOperatorSelector visitor object to process operators. More... | |
virtual void | Add (System::SharedPtr< Operator > const &op) |
Adds new operator into collection. More... | |
void | Delete (int32_t index) |
Deletes operator from collection. More... | |
virtual void | Insert (int32_t index, System::SharedPtr< Operator > op) |
Inserts operator into collection. More... | |
void | Replace (System::SharedPtr< System::Collections::Generic::IList< System::SharedPtr< Operator >>> operators) |
Replace operators in collection with other operators. More... | |
void | Add (System::ArrayPtr< System::SharedPtr< Operator >> const &ops) |
Add operators at the end of the contents operators. More... | |
void | Insert (int32_t at, System::ArrayPtr< System::SharedPtr< Operator >> ops) |
Insert operators at the the given position. More... | |
virtual System::SharedPtr< Operator > | idx_get (int32_t index) |
Gets operator by its index. More... | |
virtual void | idx_set (int32_t index, System::SharedPtr< Operator > value) |
Gets operator by its index. More... | |
void | Delete (System::ArrayPtr< System::SharedPtr< Operator >> ops) |
Deletes operators from collection. More... | |
void | Delete (System::SharedPtr< System::Collections::Generic::IList< System::SharedPtr< Operator >>> list) |
Deletes operators from collection. More... | |
void | Insert (int32_t at, System::SharedPtr< System::Collections::Generic::IList< System::SharedPtr< Operator >>> ops) |
Insert operators at the the given position. More... | |
virtual void | Clear () |
Removes all operators from list. More... | |
virtual System::String | ToString () |
Returns text representation of the operator. More... | |
void | Add (System::SharedPtr< System::Collections::Generic::ICollection< System::SharedPtr< Operator >>> const &ops) |
Adds to collection all operators from other collection. More... | |
virtual void | SuppressUpdate () |
Suppresses update contents data. The contents stream is not updated until ResumeUpdate is called. More... | |
virtual void | ResumeUpdate () |
Resumes document update. Updates contents stream in case there are any pending changes. More... | |
virtual void | CancelUpdate () |
Cancels last update. This method may be called when the change should not raise contents update. More... | |
virtual bool | Remove (System::SharedPtr< Operator > const &op) |
Remove operator from the collection. More... | |
virtual bool | Contains (System::SharedPtr< Operator > const &op) const |
Returns true if the collection contains given operator. More... | |
![]() | |
virtual void | CopyTo (System::ArrayPtr< System::SharedPtr< Aspose::Pdf::Operator > > array, int arrayIndex)=0 |
ICollection & | operator= (ICollection &&) |
ICollection & | operator= (const ICollection &) |
ICollection () | |
Default constructor. More... | |
ICollection (const ICollection &) | |
Copy constructor. More... | |
ICollection (ICollection &&) | |
Move constructor. More... | |
virtual | ~ICollection () |
Destructor. More... | |
![]() | |
System::SharedPtr< Aspose::Pdf::Operator > | LINQ_ElementAt (int index) |
System::SharedPtr< Aspose::Pdf::Operator > | LINQ_First () |
System::SharedPtr< Aspose::Pdf::Operator > | LINQ_FirstOrDefault () |
System::SharedPtr< Aspose::Pdf::Operator > | LINQ_FirstOrDefault (std::function< bool(System::SharedPtr< Aspose::Pdf::Operator >)> predicate) |
System::SharedPtr< Aspose::Pdf::Operator > | LINQ_Last () |
System::SharedPtr< Aspose::Pdf::Operator > | LINQ_LastOrDefault () |
SharedPtr< List< System::SharedPtr< Aspose::Pdf::Operator > > > | LINQ_ToList () |
int | LINQ_Count () |
System::ArrayPtr< System::SharedPtr< Aspose::Pdf::Operator > > | LINQ_ToArray () |
bool | LINQ_All (std::function< bool(System::SharedPtr< Aspose::Pdf::Operator >)> predicate) |
bool | LINQ_Any () |
bool | LINQ_Any (std::function< bool(System::SharedPtr< Aspose::Pdf::Operator >)> predicate) |
SharedPtr< IEnumerable< System::SharedPtr< Aspose::Pdf::Operator > > > | LINQ_Where (std::function< bool(System::SharedPtr< Aspose::Pdf::Operator >)> predicate) |
bool | LINQ_Contains (System::SharedPtr< Aspose::Pdf::Operator > value) |
SharedPtr< IEnumerable< ResultType > > | LINQ_Cast () |
SharedPtr< IEnumerable< Result > > | LINQ_Cast () |
SharedPtr< IEnumerable< ResultType > > | LINQ_OfType () |
SharedPtr< IEnumerable< Result > > | LINQ_OfType () |
SharedPtr< IEnumerable< ResultType > > | LINQ_Select (const Func< System::SharedPtr< Aspose::Pdf::Operator >, ResultType > &selector) |
SharedPtr< IEnumerable< Result > > | LINQ_Select (const Func< Source, Result > &selector) |
![]() | |
ASPOSECPP_SHARED_API | Object () |
Creates object. Initializes all internal data structures. More... | |
virtual ASPOSECPP_SHARED_API | ~Object () |
Destroys object. Frees all internal data structures. More... | |
ASPOSECPP_SHARED_API | Object (Object const &x) |
Copy constructor. Doesn't copy anything, really, just initializes new object and enables copy constructing subclasses. More... | |
Object & | operator= (Object const &x) |
Assignment operator. Doesn't copy anything, really, just initializes new object and enables copy constructing subclasses. More... | |
Object * | SharedRefAdded () |
Increments shared reference count. Shouldn't be called directly; instead, use smart pointers or ThisProtector. More... | |
int | SharedRefRemovedSafe () |
Decrements and returns shared reference count. Shouldn't be called directly; instead, use smart pointers or ThisProtector. More... | |
int | RemovedSharedRefs (int count) |
Decreases shared reference count by specified value. More... | |
Detail::SmartPtrCounter * | WeakRefAdded () |
Increments weak reference count. Shouldn't be called directly; instead, use smart pointers or ThisProtector. More... | |
void | WeakRefRemoved () |
Decrements weak reference count. Shouldn't be called directly; instead, use smart pointers or ThisProtector. More... | |
Detail::SmartPtrCounter * | GetCounter () |
Gets reference counter data structure associated with the object. More... | |
int | SharedCount () const |
Gets current value of shared refernce counter. More... | |
ASPOSECPP_SHARED_API void | Lock () |
Implements C# lock() statement locking. Call directly or use LockContext sentry object. More... | |
ASPOSECPP_SHARED_API void | Unlock () |
Implements C# lock() statement unlocking. Call directly or use LockContext sentry object. More... | |
virtual ASPOSECPP_SHARED_API bool | Equals (ptr obj) |
Compares objects using C# Object.Equals semantics. More... | |
virtual ASPOSECPP_SHARED_API int | GetHashCode () const |
Analog of C# Object.GetHashCode() method. Enables hashing of custom objects. More... | |
virtual ASPOSECPP_SHARED_API String | ToString () const |
Analog of C# Object.ToString() method. Enables converting custom objects to string. More... | |
virtual ASPOSECPP_SHARED_API ptr | MemberwiseClone () const |
Analog of C# Object.MemberwiseClone() method. Enables cloning custom types. More... | |
virtual ASPOSECPP_SHARED_API const TypeInfo & | GetType () const |
Gets actual type of object. Analog of C# System.Object.GetType() call. More... | |
virtual ASPOSECPP_SHARED_API bool | Is (const TypeInfo &targetType) const |
Check if object represents an instance of type described by targetType. Analog of C# 'is' operator. More... | |
virtual ASPOSECPP_SHARED_API void | SetTemplateWeakPtr (unsigned int argument) |
Set n'th template argument a weak pointer (rather than shared). Allows switching pointers in containers to weak mode. More... | |
template<> | |
bool | Equals (float const &objA, float const &objB) |
template<> | |
bool | Equals (double const &objA, double const &objB) |
template<> | |
bool | ReferenceEquals (String const &str, std::nullptr_t) |
template<> | |
bool | ReferenceEquals (String const &str1, String const &str2) |
Protected Member Functions | |
bool | get_IsReadOnlyMode () const |
void | set_IsReadOnlyMode (bool value) |
System::SharedPtr< Engine::Data::IPdfPrimitive > | get_Contents () const |
System::SharedPtr< Aspose::src::CommonData::PageContent::Operators::Commands::CommandsList > | get_CommandList () const |
bool | get_IsCommandsParsed () |
System::SharedPtr< System::Collections::Generic::List< System::SharedPtr< Operator > > > | get_Commands () const |
void | set_Commands (System::SharedPtr< System::Collections::Generic::List< System::SharedPtr< Operator >>> value) |
virtual void | set_IsFastTextExtractionMode (bool value) |
Indicates wheather collection is limited to fast text extraction More... | |
bool | get_IsBracketed () |
Gets bracketed status of operator sequence i.e. is this operators are inside of q - Q blocks More... | |
bool | get_IsUpdateSuppressed () |
virtual System::SharedPtr< Engine::Data::ITrailerable > | get_Trailerable () |
void | ParseContents () const |
void | SetData (System::ArrayPtr< uint8_t > data) |
void | SetData (System::SharedPtr< Engine::Data::IPdfPrimitive > data) |
System::ArrayPtr< uint8_t > | ReadStreamData (System::SharedPtr< Engine::Data::IPdfDataStream > src) |
void | SetStreamData (System::SharedPtr< Engine::Data::IPdfDataStream > src) |
void | SetStreamData (System::SharedPtr< Engine::Data::IPdfArray > src) |
void | SetArrayData (System::SharedPtr< Engine::Data::IPdfArray > src) |
virtual void | UpdateData () |
Update object stream. More... | |
void | Reindex () |
Update indexes of operators. This required when operators were inserted/deleted. If we dont reindex, incorect indexes may cause fault when we're trying to delete operator by its index. Example: PDFNEWNET-33455. More... | |
OperatorCollection (System::SharedPtr< Engine::Data::IPdfPrimitive > contents) | |
Constructor of OperatorCollection. Constructs operators from primitive contains operators list. More... | |
OperatorCollection (System::SharedPtr< Engine::Data::ITrailerable > trailerable, System::SharedPtr< Engine::Data::IPdfPrimitive > contents) | |
Constructor of OperatorCollection. Constructs operators from primitive contains operators list. More... | |
void | UnRegisterEvents () |
Unregisters events More... | |
virtual void | DeleteUnrestricted (int32_t index) |
internal unrestricted version of Delete(index) More... | |
virtual System::SharedPtr< Operator > | GetUnrestricted (int32_t index) |
internal unrestricted version of indexer More... | |
virtual System::SharedPtr< System::Collections::Generic::List< System::SharedPtr< Operator > > > | ToList () |
Returns opetator list. More... | |
void | Resync () |
void | FreeMem () |
virtual | ~OperatorCollection () |
![]() | |
~IEnumerable () override | |
Destructor. More... | |
Protected Attributes | |
bool | RequiresReindex |
System::SharedPtr< Engine::Data::IPdfPrimitive > | contents |
PDF primitive which contains operators list. More... | |
Additional Inherited Members | |
![]() | |
typedef System::SharedPtr< Aspose::Pdf::Operator > | ValueType |
Value type name. More... | |
typedef ICollection< System::SharedPtr< Aspose::Pdf::Operator > > | ThisType |
Collection type name. More... | |
![]() | |
typedef IEnumerator< System::SharedPtr< Aspose::Pdf::Operator > > | IEnumeratorType |
Enumerator type. More... | |
using | ValueType = System::SharedPtr< Aspose::Pdf::Operator > |
![]() | |
typedef SmartPtr< Object > | ptr |
Alias for smart pointer type. More... | |
typedef System::Details::SharedMembersType | shared_members_type |
structure to keep list of shared pointers contained in object. More... | |
![]() | |
static bool | ReferenceEquals (ptr const &objA, ptr const &objB) |
Compares objects by reference. More... | |
template<typename T > | |
static std::enable_if<!IsSmartPtr< T >::value, bool >::type | ReferenceEquals (T const &objA, T const &objB) |
Compares objects by reference. More... | |
template<typename T > | |
static std::enable_if<!IsSmartPtr< T >::value, bool >::type | ReferenceEquals (T const &objA, std::nullptr_t) |
Reference-compares value type object with nullptr. More... | |
template<typename T1 , typename T2 > | |
static std::enable_if< IsSmartPtr< T1 >::value &&IsSmartPtr< T2 >::value, bool >::type | Equals (T1 const &objA, T2 const &objB) |
Compares reference type objects in C# style. More... | |
template<typename T1 , typename T2 > | |
static std::enable_if<!IsSmartPtr< T1 >::value &&!IsSmartPtr< T2 >::value, bool >::type | Equals (T1 const &objA, T2 const &objB) |
Compares value type objects in C# style. More... | |
static const TypeInfo & | Type () |
Impleemnts C# typeof(System.Object) construct. More... | |
|
protected |
Constructor of OperatorCollection. Constructs operators from primitive contains operators list.
contents |
|
protected |
Constructor of OperatorCollection. Constructs operators from primitive contains operators list.
trailerable | |
contents |
|
protectedvirtual |
void Aspose::Pdf::OperatorCollection::Accept | ( | System::SharedPtr< IOperatorSelector > | visitor | ) |
Accepts IOperatorSelector visitor object to process operators.
visitor | Visitor object |
|
virtual |
Adds new operator into collection.
op | Operator which must be added |
Example demonstrates how to add operators to the end of page.contents.
Implements Aspose::Pdf::BaseOperatorCollection.
void Aspose::Pdf::OperatorCollection::Add | ( | System::ArrayPtr< System::SharedPtr< Operator >> const & | ops | ) |
Add operators at the end of the contents operators.
ops | Array of operators to be added. Each operator can have any index (by default -1) because they come to the end of the contents operators i.e. indices are assigned automatically. |
Example demonstrates how to add operator to the end of page contents.
void Aspose::Pdf::OperatorCollection::Add | ( | System::SharedPtr< System::Collections::Generic::ICollection< System::SharedPtr< Operator >>> const & | ops | ) |
Adds to collection all operators from other collection.
ops | collection whitch contains operators which will be added. |
Example demonstrates how to add operator collection to the page contents.
|
virtual |
Cancels last update. This method may be called when the change should not raise contents update.
Implements Aspose::Pdf::BaseOperatorCollection.
|
virtual |
Removes all operators from list.
Example demonstrates how to clear page contents.
Implements Aspose::Pdf::BaseOperatorCollection.
|
virtual |
Returns true if the collection contains given operator.
op |
Implements Aspose::Pdf::BaseOperatorCollection.
|
virtual |
Copies operators into operators list.
array | Array with operators which must to be copied. This array must be Object[] or Operator[]. |
index | Starting index from which operators will be copied |
Implements Aspose::Pdf::BaseOperatorCollection.
void Aspose::Pdf::OperatorCollection::Delete | ( | int32_t | index | ) |
Deletes operator from collection.
index | Index of operator which must be deleted. Operators numbering starts from 1. |
Example demonstrates how to delete operator by its index.
void Aspose::Pdf::OperatorCollection::Delete | ( | System::ArrayPtr< System::SharedPtr< Operator >> | ops | ) |
Deletes operators from collection.
ops | Array of operators to delete |
Example demonstrates how to remove operator from page contents.
void Aspose::Pdf::OperatorCollection::Delete | ( | System::SharedPtr< System::Collections::Generic::IList< System::SharedPtr< Operator >>> | list | ) |
Deletes operators from collection.
list | The list of operators to delete |
Example demonstrates how to remove operator from page contents.
|
protectedvirtual |
internal unrestricted version of Delete(index)
Implements Aspose::Pdf::BaseOperatorCollection.
|
protected |
|
protected |
|
protected |
|
protected |
|
virtual |
Gets count of operators in the collection.
Implements Aspose::Pdf::BaseOperatorCollection.
|
protected |
Gets bracketed status of operator sequence i.e. is this operators are inside of q - Q blocks
|
protected |
|
virtual |
Indicates wheather collection is limited to fast text extraction
Implements Aspose::Pdf::BaseOperatorCollection.
|
virtual |
Gets a value indicating whether the collection is read-only.
Implements Aspose::Pdf::BaseOperatorCollection.
|
protected |
|
protected |
|
protectedvirtual |
Implements Aspose::Pdf::BaseOperatorCollection.
|
virtual |
Returns enumerator for collection
Implements Aspose::Pdf::BaseOperatorCollection.
|
protectedvirtual |
internal unrestricted version of indexer
Implements Aspose::Pdf::BaseOperatorCollection.
|
virtual |
Gets operator by its index.
index | Index of operator. Numbering is starts from 1. |
Example demonstrates how to get operator of page contents by index.
Implements Aspose::Pdf::BaseOperatorCollection.
|
virtual |
Gets operator by its index.
index | Index of operator. Numbering is starts from 1. |
value | Operator from requested index |
Example demonstrates how to get operator of page contents by index.
Implements Aspose::Pdf::BaseOperatorCollection.
|
virtual |
Inserts operator into collection.
index | Index where new operator must be added |
op | Operator which will be insterted |
Example demonstrates how to insert operator to the page contents.
Implements Aspose::Pdf::BaseOperatorCollection.
void Aspose::Pdf::OperatorCollection::Insert | ( | int32_t | at, |
System::ArrayPtr< System::SharedPtr< Operator >> | ops | ||
) |
Insert operators at the the given position.
at | Index from which operators are being started to insert. |
ops | Array of operators to be inserted. Each operator can have any index (by default -1) because their indices adjusted automatically starting from at . |
Example demonstrates how to insert operator to the page contents.
void Aspose::Pdf::OperatorCollection::Insert | ( | int32_t | at, |
System::SharedPtr< System::Collections::Generic::IList< System::SharedPtr< Operator >>> | ops | ||
) |
Insert operators at the the given position.
at | Index from which operators are being started to insert. |
ops | Array of operators to be inserted. |
Example demonstrates how to insert operators to page contents.
|
protected |
|
protected |
|
protected |
Update indexes of operators. This required when operators were inserted/deleted. If we dont reindex, incorect indexes may cause fault when we're trying to delete operator by its index. Example: PDFNEWNET-33455.
|
virtual |
Remove operator from the collection.
op | Operator to be removed. |
Implements Aspose::Pdf::BaseOperatorCollection.
void Aspose::Pdf::OperatorCollection::Replace | ( | System::SharedPtr< System::Collections::Generic::IList< System::SharedPtr< Operator >>> | operators | ) |
Replace operators in collection with other operators.
operators | Operators list which will replace operators currently contained in the collection. Eash operator from the list must have correct index in range [1..N] where N is count of operators in the collection |
|
virtual |
Resumes document update. Updates contents stream in case there are any pending changes.
Implements Aspose::Pdf::BaseOperatorCollection.
|
protected |
|
protected |
|
protectedvirtual |
Indicates wheather collection is limited to fast text extraction
Implements Aspose::Pdf::BaseOperatorCollection.
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
virtual |
Suppresses update contents data. The contents stream is not updated until ResumeUpdate is called.
Implements Aspose::Pdf::BaseOperatorCollection.
|
protectedvirtual |
|
virtual |
Returns text representation of the operator.
|
protected |
Unregisters events
|
protectedvirtual |
Update object stream.
Implements Aspose::Pdf::BaseOperatorCollection.
|
protected |
PDF primitive which contains operators list.
|
protected |