Struct smile::ffi::DSL_network

source ·
#[repr(C, align(8))]
pub struct DSL_network { /* private fields */ }

Implementations§

source§

impl DSL_network

source

pub fn Clear(self: Pin<&mut DSL_network>)

source

pub fn Header<'a>(self: Pin<&'a mut DSL_network>) -> Pin<&'a mut DSL_header>

source

pub fn Header1(self: &DSL_network) -> &DSL_header

source

pub fn UserProperties<'a>( self: Pin<&'a mut DSL_network>, ) -> Pin<&'a mut DSL_userProperties>

source

pub fn UserProperties1(self: &DSL_network) -> &DSL_userProperties

source

pub fn Documentation<'a>( self: Pin<&'a mut DSL_network>, ) -> Pin<&'a mut DSL_documentation>

source

pub fn Documentation1(self: &DSL_network) -> &DSL_documentation

source

pub fn Ok(self: &DSL_network, handle: c_int) -> c_int

source

pub fn GetCostParents(self: &DSL_network, nodeHandle: c_int) -> &DSL_intArray

source

pub fn GetCostChildren(self: &DSL_network, nodeHandle: c_int) -> &DSL_intArray

source

pub fn OnAddOutcome( self: Pin<&mut DSL_network>, handle: c_int, outcomeIndex: c_int, )

source

pub fn OnDeleteOutcome( self: Pin<&mut DSL_network>, handle: c_int, outcomeIndex: c_int, )

source

pub fn OnReorderOutcomes( self: Pin<&mut DSL_network>, handle: c_int, newOrder: &DSL_intArray, )

source

pub fn new() -> impl New<Output = Self>

source§

impl DSL_network

source

pub fn Copy(self: Pin<&mut Self>, src: &DSL_network, skipFlags: c_int) -> c_int

source§

impl DSL_network

source

pub fn GetFirstNode(&self) -> c_int

source§

impl DSL_network

source

pub fn GetNextNode(&self, handle: c_int) -> c_int

source§

impl DSL_network

source

pub fn GetLastNode(&self) -> c_int

source§

impl DSL_network

source

pub fn GetNode(self: Pin<&mut Self>, handle: c_int) -> *mut DSL_node

source§

impl DSL_network

source

pub fn GetNode1(&self, handle: c_int) -> *const DSL_node

source§

impl DSL_network

source

pub unsafe fn GetNode2( self: Pin<&mut Self>, nodeId: *const c_char, ) -> *mut DSL_node

source§

impl DSL_network

source

pub unsafe fn GetNode3(&self, nodeId: *const c_char) -> *const DSL_node

source§

impl<'a> DSL_network

source§

impl DSL_network

source§

impl DSL_network

source

pub fn GetParents(&self, nodeHandle: c_int) -> &DSL_intArray

source§

impl DSL_network

source

pub fn GetChildren(&self, nodeHandle: c_int) -> &DSL_intArray

source§

impl DSL_network

source

pub fn SetDefaultBNAlgorithm(self: Pin<&mut Self>, theAlgorithm: c_int)

source§

impl DSL_network

source

pub fn SetDefaultIDAlgorithm(self: Pin<&mut Self>, theAlgorithm: c_int)

source§

impl DSL_network

source§

impl DSL_network

source§

impl DSL_network

source

pub fn IsUpdateImmediate(&self) -> bool

source§

impl DSL_network

source

pub fn SetUpdateImmediate(self: Pin<&mut Self>, immediate: bool) -> c_int

source§

impl DSL_network

source

pub fn EnableNoisyDecomp(self: Pin<&mut Self>, enable: bool)

source§

impl DSL_network

source§

impl DSL_network

source§

impl DSL_network

source§

impl DSL_network

source

pub fn IsJptStoreEnabled(&self) -> bool

source§

impl DSL_network

source

pub fn EnableJptStore(self: Pin<&mut Self>, enable: bool)

source§

impl DSL_network

source§

impl DSL_network

source§

impl DSL_network

source§

impl DSL_network

source

pub fn GetExtFunctions( &self, functions: Pin<&mut CxxVector<CxxString>>, includeDistributions: bool, )

source§

impl DSL_network

source

pub fn SetExtFunctions( self: Pin<&mut Self>, functions: &CxxVector<CxxString>, errFxnIdx: Pin<&mut c_int>, errPos: Pin<&mut c_int>, errMsg: Pin<&mut CxxString>, ) -> c_int

source§

impl DSL_network

source

pub fn ValidateExtFunctions( self: Pin<&mut Self>, functions: &CxxVector<CxxString>, errFxnIdx: Pin<&mut c_int>, errPos: Pin<&mut c_int>, errMsg: Pin<&mut CxxString>, ) -> *mut DSL_extFunctionContainer

source§

impl DSL_network

source§

impl DSL_network

source

pub fn SetNumberOfSamples(self: Pin<&mut Self>, aNumber: c_int) -> c_int

source§

impl DSL_network

source§

impl DSL_network

source§

impl DSL_network

source§

impl DSL_network

source§

impl DSL_network

source§

impl DSL_network

source§

impl DSL_network

source

pub fn SetRandSeed(self: Pin<&mut Self>, seed: c_int)

source§

impl DSL_network

source

pub fn GetRandSeed(&self) -> c_int

source§

impl DSL_network

source§

impl DSL_network

source§

impl DSL_network

source

pub fn GetNumberOfNodes(&self) -> c_int

source§

impl DSL_network

source

pub unsafe fn AddNode( self: Pin<&mut Self>, nodeType: c_int, nodeId: *const c_char, ) -> c_int

source§

impl DSL_network

source

pub fn DeleteNode(self: Pin<&mut Self>, handle: c_int) -> c_int

source§

impl DSL_network

source§

impl DSL_network

source

pub fn AddArc( self: Pin<&mut Self>, theParent: c_int, theChild: c_int, layer: dsl_arcType, ) -> c_int

source§

impl DSL_network

source

pub fn RemoveArc( self: Pin<&mut Self>, theParent: c_int, theChild: c_int, layer: dsl_arcType, ) -> c_int

source§

impl DSL_network

source

pub fn ReverseArc( self: Pin<&mut Self>, theParent: c_int, theChild: c_int, ) -> c_int

source§

impl DSL_network

source

pub fn IsArcNecessary( &self, parent: c_int, child: c_int, epsilon: f64, necessary: Pin<&mut bool>, ) -> c_int

source§

impl DSL_network

source§

impl DSL_network

source

pub unsafe fn MarginalizeNode( self: Pin<&mut Self>, thisNode: c_int, progress: *mut DSL_progress, ) -> c_int

source§

impl DSL_network

source§

impl DSL_network

source

pub fn IsTarget(&self, nodeHandle: c_int) -> c_int

source§

impl DSL_network

source

pub fn SetTarget(self: Pin<&mut Self>, nodeHandle: c_int, target: bool) -> c_int

source§

impl DSL_network

source§

impl DSL_network

source§

impl DSL_network

source§

impl DSL_network

source§

impl DSL_network

source§

impl DSL_network

source§

impl DSL_network

source

pub fn Related(&self, aNode: c_int, anotherNode: c_int) -> c_int

source§

impl DSL_network

source

pub fn GetAncestors( self: Pin<&mut Self>, theNode: c_int, here: Pin<&mut DSL_intArray>, ) -> c_int

source§

impl DSL_network

source

pub fn GetDescendants( self: Pin<&mut Self>, theNode: c_int, here: Pin<&mut DSL_intArray>, ) -> c_int

source§

impl DSL_network

source

pub fn GetAllNodeIds(&self, here: Pin<&mut DSL_idArray>) -> c_int

source§

impl DSL_network

source

pub fn GetAllNodes(&self, here: Pin<&mut DSL_intArray>) -> c_int

source§

impl DSL_network

source

pub fn GetAllEvidenceNodes( self: Pin<&mut Self>, here: Pin<&mut DSL_intArray>, ) -> c_int

source§

impl DSL_network

source

pub unsafe fn IsThisIdentifierInUse( &self, id: *const c_char, handleToSkip: c_int, ) -> c_int

source§

impl DSL_network

source

pub unsafe fn FindNode(&self, withThisID: *const c_char) -> c_int

source§

impl DSL_network

source§

impl DSL_network

source

pub fn InDegree(&self) -> c_int

source§

impl DSL_network

source§

impl DSL_network

source§

impl DSL_network

source§

impl DSL_network

source

pub unsafe fn ReadFile( self: Pin<&mut Self>, thisFile: *const c_char, fileType: c_int, ext: *mut c_void, ) -> c_int

source§

impl DSL_network

source

pub unsafe fn WriteFile( self: Pin<&mut Self>, thisFile: *const c_char, fileType: c_int, ext: *mut c_void, ) -> c_int

source§

impl DSL_network

source

pub unsafe fn ReadString( self: Pin<&mut Self>, xdslString: *const c_char, ext: *mut c_void, ) -> c_int

source§

impl DSL_network

source

pub unsafe fn WriteString( self: Pin<&mut Self>, xdslOutputString: Pin<&mut CxxString>, ext: *mut c_void, ) -> c_int

source§

impl DSL_network

source

pub fn IsLoading(&self) -> bool

source§

impl DSL_network

source§

impl DSL_network

source§

impl DSL_network

source§

impl DSL_network

source§

impl DSL_network

source§

impl DSL_network

source§

impl DSL_network

source§

impl DSL_network

source§

impl DSL_network

source

pub fn IsRelevanceActive(&self) -> bool

source§

impl DSL_network

source§

impl DSL_network

source§

impl DSL_network

source

pub fn IsRelevanceLevelSet(self: Pin<&mut Self>, thisFlag: c_int) -> c_int

source§

impl DSL_network

source§

impl DSL_network

source

pub fn SetRelevanceLevelFlags(self: Pin<&mut Self>, thisFlags: c_int)

source§

impl DSL_network

source

pub fn SetNetworkFlag(self: Pin<&mut Self>, thisFlag: c_int)

source§

impl DSL_network

source

pub fn ClearNetworkFlag(self: Pin<&mut Self>, thisFlag: c_int)

source§

impl DSL_network

source

pub fn IsNetworkFlagSet(&self, thisFlag: c_int) -> c_int

source§

impl DSL_network

source

pub fn GetNetworkFlags(&self) -> c_int

source§

impl DSL_network

source§

impl DSL_network

source

pub fn TemporalOrder( self: Pin<&mut Self>, here: Pin<&mut DSL_intArray>, ) -> c_int

source§

impl DSL_network

source

pub fn OrderPartially( self: Pin<&mut Self>, theseNodes: Pin<&mut DSL_intArray>, ) -> c_int

source§

impl DSL_network

source

pub fn OrderTemporally( self: Pin<&mut Self>, theseNodes: Pin<&mut DSL_intArray>, ) -> c_int

source§

impl DSL_network

source§

impl DSL_network

source

pub fn OrderPartiallyByCost( self: Pin<&mut Self>, theseNodes: Pin<&mut DSL_intArray>, ) -> c_int

source§

impl DSL_network

source

pub fn GetCostDescendants( self: Pin<&mut Self>, nodeHandle: c_int, here: Pin<&mut DSL_intArray>, ) -> c_int

source§

impl DSL_network

source

pub fn IsGroupCost(&self, node: c_int) -> bool

source§

impl DSL_network

source

pub fn ChangeOrderOfParents( self: Pin<&mut Self>, nodeHandle: c_int, newOrder: &DSL_intArray, ) -> c_int

source§

impl DSL_network

source§

impl DSL_network

source§

impl DSL_network

source§

impl DSL_network

source§

impl DSL_network

source§

impl DSL_network

source§

impl DSL_network

source

pub fn GetDepthOfNet(&self) -> c_int

source§

impl DSL_network

source

pub fn CalcProbEvidence( self: Pin<&mut Self>, pe: Pin<&mut f64>, forceChainRule: bool, ) -> bool

source§

impl DSL_network

source

pub fn CalcProbEvidence_JoinTree( self: Pin<&mut Self>, pe: Pin<&mut f64>, ) -> bool

source§

impl DSL_network

source

pub fn CalcProbEvidence_ChainRule( self: Pin<&mut Self>, pe: Pin<&mut f64>, ) -> bool

source§

impl DSL_network

source§

impl DSL_network

source

pub fn CircularGraphLayout( self: Pin<&mut Self>, classNodeHandle: c_int, ) -> c_int

source§

impl DSL_network

source§

impl DSL_network

source

pub fn GetCase(&self, index: c_int) -> *const DSL_case

source§

impl DSL_network

source

pub fn GetCase1(&self, name: &CxxString) -> *const DSL_case

source§

impl DSL_network

source

pub fn GetCase2(self: Pin<&mut Self>, index: c_int) -> *mut DSL_case

source§

impl DSL_network

source§

impl DSL_network

source

pub fn FindCase(&self, name: &CxxString) -> c_int

source§

impl DSL_network

source

pub fn DeleteCase(self: Pin<&mut Self>, index: c_int) -> c_int

source§

impl DSL_network

source§

impl DSL_network

source

pub fn GetNumberOfCases(&self) -> c_int

source§

impl DSL_network

source

pub fn EnableSyncCases(self: Pin<&mut Self>, sync: bool)

source§

impl DSL_network

source§

impl DSL_network

source

pub fn HasTemporalNodes(&self) -> bool

source§

impl DSL_network

source§

impl DSL_network

source§

impl DSL_network

source

pub fn SetNumberOfSlices(self: Pin<&mut Self>, slices: c_int) -> c_int

source§

impl DSL_network

source

pub fn AddTemporalArc( self: Pin<&mut Self>, parent: c_int, child: c_int, order: c_int, ) -> c_int

source§

impl DSL_network

source

pub fn RemoveTemporalArc( self: Pin<&mut Self>, parent: c_int, child: c_int, order: c_int, ) -> c_int

source§

impl DSL_network

source

pub fn TemporalArcExists( &self, parent: c_int, child: c_int, order: c_int, ) -> bool

source§

impl DSL_network

source

pub fn IsTemporalArcNecessary( &self, parent: c_int, child: c_int, order: c_int, epsilon: f64, necessary: Pin<&mut bool>, ) -> c_int

source§

impl DSL_network

source

pub fn GetTemporalType(&self, nodeHandle: c_int) -> dsl_temporalType

source§

impl DSL_network

source

pub fn SetTemporalType( self: Pin<&mut Self>, nodeHandle: c_int, type_: dsl_temporalType, ) -> c_int

source§

impl DSL_network

source

pub fn GetMaxTemporalOrder1(&self, nodeHandle: c_int) -> c_int

source§

impl DSL_network

source

pub fn GetTemporalOrders( &self, nodeHandle: c_int, orders: Pin<&mut DSL_intArray>, ) -> c_int

source§

impl DSL_network

source

pub fn GetTemporalParents( &self, child: c_int, order: c_int, parents: Pin<&mut DSL_intArray>, ) -> c_int

source§

impl DSL_network

source

pub fn FindTemporalParentPosition( &self, parent: c_int, child: c_int, order: c_int, ) -> c_int

source§

impl DSL_network

source§

impl DSL_network

source

pub fn OnTypeChanged(self: Pin<&mut Self>, handle: c_int, prevType: c_int)

source§

impl DSL_network

source

pub unsafe fn OnNodeIdChanging( self: Pin<&mut Self>, handle: c_int, oldId: *const c_char, newId: *const c_char, ) -> c_int

source§

impl DSL_network

source

pub fn GetBuild(&self, build: Pin<&mut CxxString>)

source§

impl DSL_network

source

pub fn GetTopComment(&self, comment: Pin<&mut CxxString>)

source§

impl DSL_network

source

pub fn RelevanceControlValue(self: Pin<&mut Self>, thisNode: c_int) -> c_int

source§

impl DSL_network

source§

impl DSL_network

source

pub fn RelevanceEvidenceSet(self: Pin<&mut Self>, thisNode: c_int) -> c_int

source§

impl DSL_network

source§

impl DSL_network

source§

impl DSL_network

source§

impl DSL_network

source§

impl DSL_network

source

pub fn RelevanceArcRemoved( self: Pin<&mut Self>, theParent: c_int, theChild: c_int, ) -> c_int

source§

impl DSL_network

source

pub fn RelevanceArcAdded( self: Pin<&mut Self>, theParent: c_int, theChild: c_int, ) -> c_int

source§

impl DSL_network

source

pub fn RelevanceDefinitionChanged( self: Pin<&mut Self>, thisNode: c_int, changeType: c_int, ) -> c_int

source§

impl DSL_network

source§

impl DSL_network

Trait Implementations§

source§

impl Drop for DSL_network

source§

fn drop(self: &mut DSL_network)

Executes the destructor for this type. Read more
source§

impl ExternType for DSL_network

§

type Id = (D, S, L, __, n, e, t, w, o, r, k)

A type-level representation of the type’s C++ namespace and type name. Read more
§

type Kind = Opaque

source§

impl MakeCppStorage for DSL_network

source§

unsafe fn allocate_uninitialized_cpp_storage() -> *mut DSL_network

Allocates heap space for this type in C++ and return a pointer to that space, but do not initialize that space (i.e. do not yet call a constructor). Read more
source§

unsafe fn free_uninitialized_cpp_storage(arg0: *mut DSL_network)

Frees a C++ allocation which has not yet had a constructor called. Read more
source§

impl SharedPtrTarget for DSL_network

source§

impl UniquePtrTarget for DSL_network

source§

impl WeakPtrTarget for DSL_network

Auto Trait Implementations§

Blanket Implementations§

source§

impl<T> Any for T
where T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for T
where T: ?Sized,

source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

source§

impl<T, U> Into<U> for T
where U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.