[−][src]Struct opencv::core::FileNode
File Storage Node class.
The node is used to store each and every element of the file storage opened for reading. When XML/YAML file is read, it is first parsed and stored in the memory as a hierarchical collection of nodes. Each node can be a "leaf" that is contain a single number or a string, or be a collection of other nodes. There can be named collections (mappings) where each element has a name and it is accessed by a name, and ordered collections (sequences) where elements do not have names but rather accessed by index. Type of the file node can be determined using FileNode::type method.
Note that file nodes are only used for navigating file storages opened for reading. When a file storage is opened for writing, no data is stored in memory after it is written.
Implementations
impl FileNode
[src]
pub fn as_raw_FileNode(&self) -> *const c_void
[src]
pub fn as_raw_mut_FileNode(&mut self) -> *mut c_void
[src]
impl FileNode
[src]
pub fn default() -> Result<FileNode>
[src]
The constructors.
These constructors are used to create a default file node, construct it from obsolete structures or from the another file node.
pub fn new(fs: &FileStorage, block_idx: size_t, ofs: size_t) -> Result<FileNode>
[src]
The constructors.
These constructors are used to create a default file node, construct it from obsolete structures or from the another file node.
Overloaded parameters
Parameters
-
fs: Pointer to the file storage structure.
-
blockIdx: Index of the memory block where the file node is stored
-
ofs: Offset in bytes from the beginning of the serialized storage
@deprecated
pub fn copy(node: &FileNode) -> Result<FileNode>
[src]
The constructors.
These constructors are used to create a default file node, construct it from obsolete structures or from the another file node.
Overloaded parameters
Parameters
- node: File node to be used as initialization for the created file node.
pub fn is_map(flags: i32) -> Result<bool>
[src]
pub fn is_seq(flags: i32) -> Result<bool>
[src]
pub fn is_collection(flags: i32) -> Result<bool>
[src]
pub fn is_empty_collection(flags: i32) -> Result<bool>
[src]
pub fn is_flow(flags: i32) -> Result<bool>
[src]
Trait Implementations
impl Boxed for FileNode
[src]
unsafe fn from_raw(ptr: *mut c_void) -> Self
[src]
fn into_raw(self) -> *mut c_void
[src]
fn as_raw(&self) -> *const c_void
[src]
fn as_raw_mut(&mut self) -> *mut c_void
[src]
impl Drop for FileNode
[src]
impl FileNodeTrait for FileNode
[src]
fn as_raw_FileNode(&self) -> *const c_void
[src]
fn as_raw_mut_FileNode(&mut self) -> *mut c_void
[src]
fn block_idx(&self) -> size_t
[src]
fn set_block_idx(&mut self, val: size_t)
[src]
fn ofs(&self) -> size_t
[src]
fn set_ofs(&mut self, val: size_t)
[src]
fn get(&self, nodename: &str) -> Result<FileNode>
[src]
fn get_node(&self, nodename: &str) -> Result<FileNode>
[src]
fn at(&self, i: i32) -> Result<FileNode>
[src]
fn keys(&self) -> Result<Vector<String>>
[src]
fn typ(&self) -> Result<i32>
[src]
fn empty(&self) -> Result<bool>
[src]
fn is_none(&self) -> Result<bool>
[src]
fn is_seq(&self) -> Result<bool>
[src]
fn is_map(&self) -> Result<bool>
[src]
fn is_int(&self) -> Result<bool>
[src]
fn is_real(&self) -> Result<bool>
[src]
fn is_string(&self) -> Result<bool>
[src]
fn is_named(&self) -> Result<bool>
[src]
fn name(&self) -> Result<String>
[src]
fn size(&self) -> Result<size_t>
[src]
fn raw_size(&self) -> Result<size_t>
[src]
fn to_i32(&self) -> Result<i32>
[src]
fn to_f32(&self) -> Result<f32>
[src]
fn to_f64(&self) -> Result<f64>
[src]
fn to_string(&self) -> Result<String>
[src]
fn ptr(&mut self) -> Result<&mut u8>
[src]
fn ptr_1(&self) -> Result<&u8>
[src]
fn begin(&self) -> Result<FileNodeIterator>
[src]
fn end(&self) -> Result<FileNodeIterator>
[src]
fn read_raw(&self, fmt: &str, vec: *mut c_void, len: size_t) -> Result<()>
[src]
fn set_value(&mut self, typ: i32, value: *const c_void, len: i32) -> Result<()>
[src]
fn real(&self) -> Result<f64>
[src]
fn string(&self) -> Result<String>
[src]
fn mat(&self) -> Result<Mat>
[src]
impl Send for FileNode
[src]
Auto Trait Implementations
impl RefUnwindSafe for FileNode
impl !Sync for FileNode
impl Unpin for FileNode
impl UnwindSafe for FileNode
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,